Weitere ähnliche Inhalte
Ähnlich wie 浅谈 Javascript 性能优化 (20)
浅谈 Javascript 性能优化
- 8. 另一个例子 (function(win, S, undefined) { ... ... var doc = win['document'], loc = location, EMPTY = '', ... ... })(window, 'KISSY');
- 23. DOM操作 指明操作DOM的context YUI: Array getElementsByClassName ( className , tag , root , apply , o , overrides ) KISSY: Array<HTMLElement> query ( selector, context ) 即便是用原生的JS,也应该指明: context.getElementsByTagName()