<input type="text" onclick="oCopy(this)" value="你好,内容!">
<script>
    function oCopy(obj){
        obj.select();    // 选中输入框中的内容
    }
</script>

 

相关文章:

  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-08-03
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案