代码如下: $(document).ready(function(){ $(document).bind("contextmenu",function(e){ return false; }); });
5行代码搞定,简单吧,当然小伙伴们可以自由扩展下,可以实现屏蔽右键菜单的指定项。