首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > 易于使用的JavaScript工具和框架如prototype.js,但不污染的内置类原型!

易于使用的JavaScript工具和框架如prototype.js,但不污染的内置类原型!

资 源 简 介

Extend.js is easy to use JavaScript utilities and framework. You can use the extended built-in classes (Object, String, Array...) by surrounding by `X(...)` For example: ``` // clone an object X({a:"a", b:"b"}).clone(); // use the Array"s each() function (added since ECMAScript 5th, but you can use it on every browser) X([1,2,3]).each(function(value, index) { console.log(index + ":" + value); // -> 0:1, 1:2, 2:3 }); // Array.map() X([1,2,3]).map(function(value, index) {...}); // Array.reduce() X([1,2,3]).reduce(function(rvalue, value, index) {...}); // flatten array X([1,[2,3],[[4],5]]).flatten() // -> [1,2,3,4,5] // use the String"s trim() function (added since ECMAScript 5th, but you can use it on every browser) X(" abc ").trim(); // -> "abc" // get argument names of any function (same as Function.argumentNames() in Prototype.js 1.6) X(X).argumentNam

文 件 列 表

.hg
store
00changelog.i
branch
branchheads.cache
dirstate
hgrc
requires
undo.branch
undo.dirstate
src
array.js.i
boolean.js.i
core.js.i
date.js.i
function.js.i
null.js.i
number.js.i
object.js.i
regexp.js.i
string.js.i
undefined.js.i
util.js.i
array.js
boolean.js
core.js
date.js
function.js
null.js
number.js
object.js
regexp.js
string.js
undefined.js
util.js
test
extend.test.html.i
extend.test.html
.hgignore
LICENSE
NOTICE
README
build.properties
build.xml
closure-compiler-20100331.jar
extend-0.8.1.js
extend-0.8.1.min.js
extend-0.8.js
extend-0.8.min.js
extend-old.js
images.odg
logo.png

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP