我有以下变量,其中包含以下字符串。我想把 和<nobr>都去掉</nobr>,只留下里面的东西。
alert(product_code);
Run Code Online (Sandbox Code Playgroud)
产生
<nobr>209/00254/01</nobr>
Run Code Online (Sandbox Code Playgroud)
我如何创建一个删除标签的新变量<nobr>?
var product_code = $(this).html();
alert(product_code);
Run Code Online (Sandbox Code Playgroud)