// 禁止右鍵查看源代碼 <body oncontextmenu="window.event.returnValue=false"> //禁止拷貝代碼,不能選中內容
<div onselectstart="return false">不能拷貝</div> //禁止粘貼到input中 <input type="text" onpaste="return false" />
// 禁止右鍵查看源代碼 <body oncontextmenu="window.event.returnValue=false"> //禁止拷貝代碼,不能選中內容
<div onselectstart="return false">不能拷貝</div> //禁止粘貼到input中 <input type="text" onpaste="return false" />