我很难理解 AngularJS 中的指令。AngularJS 自己的定义充其量是令人困惑的:
Directives are a way to teach HTML new tricks. During DOM compilation directives are matched against the HTML and executed. This allows directives to register behavior, or transform the DOM.
有人可以用编程教学中常用的简单英语解释 AngularJS 中的指令吗?就像是:directives are funcions/objects that extends ...