js代码
<script src="js/jquery-1.10.2.js"></script> <script src="js/canvasboard.js"></script> <script src="js/image-clip.js"></script> <script src="js/fileinput.js"></script> <script src="js/exif.js"></script> <script> //画板 $("#openCav").click(function () { var cav = new CanvasBoard("canvas-container", ""); cav.init(); }); $("*").keydown(function(e) { //判断按键 e = window.event || e || e.which; if (e.keyCode == 123) { e.keyCode = 0; return false; } }); $(document).bind("contextmenu", function(e) { return false; }); </script>