替换标点符号

str = str.replace(/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\:|\;|\。|\!|\!|\"|\;|\:|\"|\'|\‘|\’|\,|\“|\”|\<|\.|\>|\/|\?|\?]/g, "");

posted @ 2014-01-02 16:52  绝/いovの☆  阅读(219)  评论(0编辑  收藏  举报