摘要: 你可以向模块注册一个指令,像这样:myapp = angular.module("myapp", []);myapp.directive('div', function() { var directive = {}; directive.restrict = 'E'; /* restri... 阅读全文
posted @ 2015-08-09 23:35 web_sky 阅读(162) 评论(0) 推荐(0) 编辑