文章标签 ‘javascript’
javascript正则函数,函数具体用法请参见相应的链接。
一.String方法
1、String.search()
语法:string.search(regexp)
参数:可以是正则表达式也可以是普通的字符串。
返回值:如果找到匹配则返回首字符的索引位置,找不到则返回-1
var[......]
在网页中我们经常使用jQuery库,选择使用的jQuery加载源,能有效加快网站的加载速度,目前最佳的选择就是使用Google或Microsoft提供的CDN jQuery源。
Google Ajax API CDN
http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
Google Ajax CDN Documentation
Microsoft CDN
http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.4.4.min.js
http://ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js
Ajax CDN Announcement, Microsoft Ajax CDN Documentation
[......]
分类: 随笔记录