JSLite / JSLite

与jQuery有着类似的api,让web开发更迅速,下载执行更快、量级更轻,针对现代高级浏览器的JavaScript库。

Home Page:http://jslite.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

map优化

jaywcjlove opened this issue · comments

使用Array的map优化map方法

Array.prototype.map 

@yanhaijing 果然这样干不错哦,优化了。自动化测试要学习一下,测试好费时间。共同学习哦。

:-) 我在看到这个方法时就觉得好奇怪,为何不用,测试这个得共同学习了,现在改了代码的话 没法保证对现有程序是否会引入bug

优化 $.map 导致调用 ['after','prepend','before','append'] 方法报错

TypeError: Argument 1 of Node.insertBefore does not implement interface Node.

回滚了