摘要: 1、compile和link的形式 compilefunction compile(element, attrs, transclude) { ... }在compile阶段要执行的函数,返回的function就是link时要执行的function,常用参数为element和attrs,分别是dom... 阅读全文
posted @ 2015-05-06 15:12 林屋 阅读(328) 评论(0) 推荐(0) 编辑