JavaScript Prototype Extensions (JavaScript原型扩展)
虽然现在外面JavaScript的第三方插件很多,但多数是针对UI展示的,其实JavaScript本身的数据类型与C#或者Java这类高级语言相比,依然有很大的欠缺和不便,很多常用的方法都需要自己实现,而且零零散散的,不利于管理和维护。还有一些功能方法虽然JavaScript原生有支持,却和高级语言的写法、含义大相径庭,容易造成误解。基于上述原因,我决定把很多常用的扩展聚集起来,作为原生类型的原型扩展,方便其他的人使用。
注:此扩展不依赖任何第三方库,直接从原型派生。
项目名称: JavaScript Prototype Extensions
项目地址:http://jsprototype.codeplex.com/
文档及示例地址:http://jsprototype.codeplex.com/documentation
下载地址:http://jsprototype.codeplex.com/releases/
当前支持的扩展方法:
扩展会不断更新,请使用者定期关注版本以及文档的更新,有任何的疑问和建议,都可以直接联系我: bluelotus7@126.com
谢谢!
What's New in 1.2.0.0
- Add Object.equals to support object data comparison.
- Refine Array.find to make it support not only Object but also number/string, etc.
- Add Array.contains to provide quick finding functionality for array type.
- Add Array.distinct to filter duplicated items and return unique items.