angularjs directive 指令生命周期

    // 定义了一个指令 drink angular.module("myApp") .directive("drink", function() { return { // 指令 标识是 element 和 attribute restrict:'AE', scope:{ // 属性 water 与 panrent的$scope关联 water:'
相关文章
相关标签/搜索