修复输入内容换行引起的一些问题、修复IE浏览器下报错的问题

This commit is contained in:
fan
2021-01-29 21:03:47 +08:00
parent 177d610b68
commit abf9abac25
15 changed files with 128 additions and 112 deletions
+4
View File
@@ -70,6 +70,10 @@ export function funCall(event, callback) {
export function arrayIntersect(a, b) {
return a.filter(x => b.includes(x));
}
//清除字符串内的所有HTML标签
export function clearHtml(str){
return str.replace(/<.*?>/ig,"");
}
export function error(text) {
throw new Error(text);