我很难理解AngularJS中的指令。AngularJS本身的定义充其量也是令人困惑的:
Directives are a way to teach HTML new tricks.During DOM compilation directives are matched against the HTML and executed.有没有人能用简单易懂的英语解释一下AngularJS中的指令,这是编程教学中常用的。类似于:directives are funcions/objects that extends .