js中字符串的替换

271 阅读1分钟
       var id="9783427834hfu_1"

      id = id.replace(/-1/g,"")