[英]Titanium Appcelerator - Disable copy and paste in textfield
如何禁用粘贴到TextField中的文本?
There are many ways to do this, I suggest validating data which could minimize wrong information. 有很多方法可以做到这一点,我建议验证数据以减少错误信息。
You can disable it from the front end as follows: 您可以从前端禁用它,如下所示:
<input type="text" onpaste="return false;" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.