http://damoqiongqiu.iteye.com/blog/1920191
http://damoqiongqiu.iteye.com/blog/1920993
拿走,不謝
http://damoqiongqiu.iteye.com/blog/1920993
拿走,不謝
2017-08-07
Angular 1.6.5中 自定義屬性的獲取方式使用老師講的獲取方式報錯,打印attr觀察后發現,自定義屬性直接定義成了attr的屬性成員,直接引用即可,大小寫仍然是坑。
例如:<hello HowToDo="just do it"></hello>
module.directive('hello',function(){
return {
restrict:'AE',
link:function(scope,element,attr){
element.bind('mouseenter',function(){
scope.load(attr.howtodo);
});
}
}
});
例如:<hello HowToDo="just do it"></hello>
module.directive('hello',function(){
return {
restrict:'AE',
link:function(scope,element,attr){
element.bind('mouseenter',function(){
scope.load(attr.howtodo);
});
}
}
});
2017-08-07
對于評論無話可說,我個人認為這份視頻還是很不錯的,如果沒全聽明白還是多找找自己的原因,一份視頻不可能教會你一整個框架,感謝大漠老師的付出
2017-08-03