![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Javascript
iteye_8592
这个作者很懒,什么都没留下…
展开
-
String.prototype.match使用小记
String.prototype.match(str|regexp)内部其实使用了RegExp.prototype.exec方法。 首先根据传入的参数分别创建一个RegExp对象和String对象,然后调用RegExp.exec(String); 使用match时有时需要注意group ()和 flag /g的结合使用时的处理: 例1: var r, re; ...2009-11-30 10:55:20 · 129 阅读 · 0 评论 -
prototype1.6和mootools1.2.3在本人目前工作中比较常用的方法比较
由于目前在项目中比较常用到类继承、事件绑定、Ajax方法,下面是在prototype1.6和mootools1.2.3中这几个实现的比较: prototype1.6.js [code="java"] prototype var C=Class.create({ a:null, b:null, initialize:function(a,b){ this.a...2009-09-05 15:46:01 · 84 阅读 · 0 评论