企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
## 思路:自定义指令iYyan,属性就可以使用i-yyan了 ~~~ <body ng-app="model"> <div ng-controller="a"> <div class="i-yyan"></div> </div> </body> ~~~ ~~~ var a = module('app'); a.directive('iYyan',function(){ return { restrict:'AEC'; template:'内容' }; }) ~~~