84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
假如我是 var s= "..........."
我的需求
将 标签内的内容替换成 其他内容
从起始位置计算, 在整个字符串中的index 位置
ringa_lee
You can consider using regular expressions to process
String.prototype.indexOf()String.prototype.substring()String.prototype.replace()
The question owner can use the above method to solve the problem
1 Use regular expression2 Use index of
s.replace(/]+)>/g, "新字符串")
You can consider using regular expressions to process
String.prototype.indexOf()
String.prototype.substring()
String.prototype.replace()
The question owner can use the above method to solve the problem
1 Use regular expression
2 Use index of