84669 Lernen von Personen
152542 Lernen von Personen
20005 Lernen von Personen
5487 Lernen von Personen
7821 Lernen von Personen
359900 Lernen von Personen
3350 Lernen von Personen
180660 Lernen von Personen
48569 Lernen von Personen
18603 Lernen von Personen
40936 Lernen von Personen
1549 Lernen von Personen
1183 Lernen von Personen
32909 Lernen von Personen
angular中dom操作放controller还是directive里?
放directive里。
controller必须不能操作dom。controller是操作页面上的数据。
操作DOM需要使用directive,相关的angular编写规范可以参考:https://github.com/johnpapa/angular-styleguide#manipulate-dom-in-a-directive
放directive里。
controller必须不能操作dom。controller是操作页面上的数据。
操作DOM需要使用directive,相关的angular编写规范可以参考:
https://github.com/johnpapa/angular-styleguide#manipulate-dom-in-a-directive