【发布时间】:2017-05-29 06:44:52
【问题描述】:
我在很多教程中试图理解angularjs指令的prelink/postlink函数,但无法识别正常的链接函数,是相当于pre link还是post link函数。
(1)
link : function(scope element, attrs) {
}
(2)
pre : function(scope element, attrs) {
}
(3)
post : function(scope element, attrs) {
}
"(1) 是否等于 (2) || (1) 是否等于 (3)" ??
【问题讨论】:
标签: angularjs angularjs-directive