Jquery 替换全部字符

item.replace('P','')   只会替换第一个'P'字符

item.replace(/P/gm,'') 替换全部'P'字符

posted @ 2017-08-24 12:02  老-顾  阅读(1541)  评论(1编辑  收藏  举报