摘要: 最近一直被正则困扰,四处查找,现总结如下定义和使用varpatt1 =newRegExp("hello");varpatt2 =/world/;test方法test()方法检索字符串中的指定值。返回值是true或false。varpat =/my/;varstr ="this is my code.... 阅读全文
posted @ 2015-08-24 15:24 sherryTian 阅读(232) 评论(0) 推荐(0)