eslint; 收入合同
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user