el-input为number分类做输入长度范围
原创起初,我想偷懒。我在百度股份有限公司上复制了它,发现那些热门文章真的是胡说八道。
然后我直接编码,估计有我想复制的懒可以用
....
limitPhoneNum(value) {
if (value.toString().length > 11) {
this.codeForm.phoneNum = this.codeForm.phoneNum.toString().slice(0, 11)
}
console.log(value);
}, 版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除
相关文章
最新文章
- Fornax's Guide to Fast Ethernet 44秒前
- Possibly leaked NSA Cyberattack tool behind attacks (2017) 1小时前
- Steve Wozniak on Writing Apple Integer Basic 1小时前
- PayByPhone is stealing $50M/year from their users 1小时前
- Grand Theft Auto 6: A Landmark Achievement That Redefines a Console Generation 1小时前
- Research Acceleration: The Jagged Frontier 2小时前
- Google Embraces Geothermal Technology to Vaporize Rock for Clean Power 3小时前
- Microsoft's Agent Framework PyPI package compromised to steal credentials 4小时前
- Nvidia's Seven Billionaires Have Lost a Third of Their Wealth 4小时前
- Stabyourself.net Games 5小时前
itfan123

