常用表單驗證正則集合
只能是正整數
<input v-model="test" placeholder="只能輸入正整數" onkeyup="value=value.replace(/[^0-9]/g, '')"></input>
去掉換行和空格
str = str.replace(/[ ]|[\r\n]/g,"")
常用表單驗證正則集合
只能是正整數
<input v-model="test" placeholder="只能輸入正整數" onkeyup="value=value.replace(/[^0-9]/g, '')"></input>
去掉換行和空格
str = str.replace(/[ ]|[\r\n]/g,"")
(function(d, s, id) { let js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) retur
<style type=text/css>td { font-size: 12px; color: #000000; line-heig