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