解决方案 »

  1.   

    $('textarea').bind("copy cut", function (e) { //添加复制、剪切事件
    e.preventDefault(); // 阻止事件的默认行为 
    }); 
    但对专业人员无用,可以查看源代码或者开调试工具复制代码中的内容
      

  2.   

    最好在body上也设置楼上的事件,不然全选整个页面也能复制
      

  3.   

    禁止选择内容就行<script>
        document.onselectstart = function () { return false; }//IE9-
        document.oncontextmenu = function () { return false; }
    //firefox,chrome,ie10+
        document.write('<style>*{-moz-user-select:none;-webkit-user-select:none;-khtml-user-select:none;-ms-user-select: none;user-select: none;}</style>')
    </script>
    制作的网页内容,禁止大家复制,包括文本域的复制,禁止点右键复制,剪切,包括禁止ctrl+C  ctrl+X 
    <textarea>文本域</textarea>
      

  4.   

    禁止右键的代码:    $('body').bind('contextmenu', function() {
          return false;
        });禁止复制的代码:$('body').bind("selectstart",function(){return false;});