代码如下: <form action=”//www.jb51.net” id=”form”> <input type=”text” /> <input type=”submit” /> </form> [removed] var code = function () { return false; }; var element = window.document.getElementById(“form”); if (element.addEventListener) { element.addEventListener(“submit”, co