利用正则表达式去除html标签

 var reg=/<\/?.+?\/?>/g
    stepsC.map((item,index)=>{
      this.steps.push({desc:item.CellContent .replace(reg,'')})
    })

猜你喜欢

转载自www.cnblogs.com/lxsunny/p/11997006.html
今日推荐