eslint; 收入合同

This commit is contained in:
zhaoxiao
2021-09-03 19:27:41 +08:00
parent c53de39b40
commit 303c1026f8
164 changed files with 5964 additions and 4788 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ const vTrim = {
input.oninput = (event) => {
console.log(event.target.value)
// event.target.value = event.target.value.replace(/(^\s*)|(\s*$)/g, "")
input.value = input.value.replace(/(^\s*)|(\s*$)/g, "")
input.value = input.value.replace(/(^\s*)|(\s*$)/g, '')
}
// // 获取当前光标所在位置
// const inputSelection = input.selectionStart
@@ -23,8 +23,8 @@ const vTrim = {
// input.dispatchEvent(new Event(modifiers.lazy ? 'change' : 'input'))
// }
}
});
})
}
};
}
export default vTrim