angularJS 自定义指令 属性:restrict、template、replace

    假如咱们要展现一个用户list,使用angularJS,能够这样作:先在控制器中定义用户列表的数组,再在html中写上相应的dom元素,以下:javascript js:html angular.module('myApp',[]) .controller('myCtrl',['$scope',function($scope){ $scope.users=[ {id
相关文章
相关标签/搜索