文章分类 -  JQuery

摘要:1) 禁止右键 在开发 Web 应用的时候,有些情况需要禁用右键单击功能。使用此代码,jQuery 开发人员可以在网页上禁用鼠标右键点击。代码如下:12345678910$(document).ready(function() {//catch the right-click context menu$(document).bind("contextmenu",function(e) { //warning prompt - optionalalert("No right-clicking!");//delete the default context 阅读全文
posted @ 2014-03-07 00:35 杨潇love 阅读(174) 评论(0) 推荐(0)