小智 19
您在寻找的所有信息都可以在AngularJS文档网站上找到.
function compile(tElement, tAttrs, transclude) { ... }
function link(scope, iElement, iAttrs, controller) { ... }
function controller(scope, element, attribute, transcludeFn)
Run Code Online (Sandbox Code Playgroud)
查看编写指令长版本
http://docs.angularjs.org/guide/directive
| 归档时间: |
|
| 查看次数: |
9361 次 |
| 最近记录: |