摘要:javascript中的正则表达式对象regExp。创建regExp对象语法new regExp(pattern,attributes);直接量语法/pattern/attributes 也可以是new regExp(/pattern/attributes)注意:如果用new regExp(pattern,attributes)创建对象pattern作为一个字符串需要加引号"";如果用直接量语法,...
阅读全文
随笔分类 - javascript
摘要:javascript中的正则表达式对象regExp。创建regExp对象语法new regExp(pattern,attributes);直接量语法/pattern/attributes 也可以是new regExp(/pattern/attributes)注意:如果用new regExp(pattern,attributes)创建对象pattern作为一个字符串需要加引号"";如果用直接量语法,...
阅读全文
摘要:XMLHttpRequest的属性onreadystatechange属性存有服务器响应的函数,后面可以跟一个function,每当服务器状态改变是执行function.Code highlighting produced by Actipro CodeHighlighter (freeware)h...
阅读全文
|