Remove character from string using javascript

前端 未结 7 2151
失恋的感觉
失恋的感觉 2020-12-11 16:03

i have comma separated string like

var test = 1,3,4,5,6,

i want to remove particular character from this string using java script

can a

相关标签:
7条回答
  • 2020-12-11 17:05

    you can make use of JavaScript replace() Method

    var str="Visit Microsoft!";
    var n=str.replace("Microsoft","My Blog");
    
    0 讨论(0)
提交回复
热议问题