Tips:常用正则表达式 是阿湫 2022-08-24 58 阅读1分钟 输入式不能等于字符串abc和bcd(同理数字也可): ^(?!(?:abc|bcd)$) 不能以0开头: ^(?!0).*$ 另:输入框不能输入非负整数 <a-input oninput="value=value.replace(/^(0+)|[^\d]+/g,'');"/>