摘要: var my_reg="hello";str.match(eval("/"+myreg+"/")); 阅读全文
posted @ 2015-07-04 14:42 白小虫 阅读(997) 评论(0) 推荐(0)
摘要: vara='abc\\cba\\';varb='\\\\';alert(a.replace(/\\/g,b)); 阅读全文
posted @ 2015-07-04 14:13 白小虫 阅读(164) 评论(0) 推荐(0)