js过滤HTML标签以及空格的思路及代码 复制代码 代码如下:function setContent(str) {str = str replace( < ?[^>]*> g,); 去除HTML tagstr v JavaScript 2022-04-19 237 点赞 3 评论 359 浏览