<legend id='rsxE6'><style id='rsxE6'><dir id='rsxE6'><q id='rsxE6'></q></dir></style></legend>

          <bdo id='rsxE6'></bdo><ul id='rsxE6'></ul>
        <tfoot id='rsxE6'></tfoot>
      1. <i id='rsxE6'><tr id='rsxE6'><dt id='rsxE6'><q id='rsxE6'><span id='rsxE6'><b id='rsxE6'><form id='rsxE6'><ins id='rsxE6'></ins><ul id='rsxE6'></ul><sub id='rsxE6'></sub></form><legend id='rsxE6'></legend><bdo id='rsxE6'><pre id='rsxE6'><center id='rsxE6'></center></pre></bdo></b><th id='rsxE6'></th></span></q></dt></tr></i><div id='rsxE6'><tfoot id='rsxE6'></tfoot><dl id='rsxE6'><fieldset id='rsxE6'></fieldset></dl></div>

        <small id='rsxE6'></small><noframes id='rsxE6'>

        在 HTML 输入字段中禁用复制粘贴?

        Disable copy paste in HTML input fields?(在 HTML 输入字段中禁用复制粘贴?)
        <legend id='bGoPR'><style id='bGoPR'><dir id='bGoPR'><q id='bGoPR'></q></dir></style></legend>

      2. <i id='bGoPR'><tr id='bGoPR'><dt id='bGoPR'><q id='bGoPR'><span id='bGoPR'><b id='bGoPR'><form id='bGoPR'><ins id='bGoPR'></ins><ul id='bGoPR'></ul><sub id='bGoPR'></sub></form><legend id='bGoPR'></legend><bdo id='bGoPR'><pre id='bGoPR'><center id='bGoPR'></center></pre></bdo></b><th id='bGoPR'></th></span></q></dt></tr></i><div id='bGoPR'><tfoot id='bGoPR'></tfoot><dl id='bGoPR'><fieldset id='bGoPR'></fieldset></dl></div>

                  <tbody id='bGoPR'></tbody>

              • <small id='bGoPR'></small><noframes id='bGoPR'>

                  <bdo id='bGoPR'></bdo><ul id='bGoPR'></ul>
                  <tfoot id='bGoPR'></tfoot>

                  本文介绍了在 HTML 输入字段中禁用复制粘贴?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  可能重复:
                  禁用使用Javascript复制/粘贴到HTML表单

                  我的银行似乎已禁用复制-粘贴用户名和密码.

                  My bank seem to have disabled copy-paste of username and password.

                  它是如何完成的?它会提高安全性吗?

                  How is it done? Does it improve security?

                  推荐答案

                  您可以禁用粘贴输入,如下所示:

                  You can disable paste in your input as follows:

                  html:

                  <input type="text" value="" id="myInput">
                  

                  javascript:

                  window.onload = () => {
                   const myInput = document.getElementById('myInput');
                   myInput.onpaste = e => e.preventDefault();
                  }
                  

                  谈到安全性,我不会说这会产生任何影响.您通常会使用客户端和服务器端验证用户提交的数据.

                  Talking about security, I wouldn't say that this makes any impact. You would usually use client side and well as server-side validation of data submitted by the user.

                  这篇关于在 HTML 输入字段中禁用复制粘贴?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  quot;Each child in an array should have a unique key propquot; only on first time render of page(“数组中的每个孩子都应该有一个唯一的 key prop仅在第一次呈现页面时)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                  <i id='pTD38'><tr id='pTD38'><dt id='pTD38'><q id='pTD38'><span id='pTD38'><b id='pTD38'><form id='pTD38'><ins id='pTD38'></ins><ul id='pTD38'></ul><sub id='pTD38'></sub></form><legend id='pTD38'></legend><bdo id='pTD38'><pre id='pTD38'><center id='pTD38'></center></pre></bdo></b><th id='pTD38'></th></span></q></dt></tr></i><div id='pTD38'><tfoot id='pTD38'></tfoot><dl id='pTD38'><fieldset id='pTD38'></fieldset></dl></div>

                      1. <legend id='pTD38'><style id='pTD38'><dir id='pTD38'><q id='pTD38'></q></dir></style></legend>

                            <tbody id='pTD38'></tbody>

                          <small id='pTD38'></small><noframes id='pTD38'>

                          <tfoot id='pTD38'></tfoot>
                          • <bdo id='pTD38'></bdo><ul id='pTD38'></ul>