input控件 输入框禁止复制粘贴剪切自动完成
https://blog.csdn.net/weixin_41192581/article/details/105095350?utm_medium=distribute.pc_feed_404.none-task-blog-2~default~BlogCommendFromBaidu~Rate-1-105095350-blog-null.pc_404_mixedpudn&depth_1-utm_source=distribute.pc_feed_404.none-task-blog-2~default~BlogCommendFromBaidu~Rate-1-105095350-blog-null.pc_404_mixedpud
禁止复制
οncοpy="return false"
禁止粘贴
οnpaste="return false"
禁止剪切
oncut="return false"
禁止右键弹出
οncοntextmenu="return false"
关闭自动完成功能(缓存)
autocomplete="off"
自动获得焦点
autofocus="autofocus"
禁用自动更正
autocorrect="off"
来关闭键盘默认首字母大写(移动端)
autocapitalize="off"
不对元素的文本进行拼写检查
spellcheck="false"
<input
type="password"
onpaste="return false"
oncontextmenu="return false"
oncopy="return false"
oncut="return false"
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
autofocus="autofocus"
/>