4.xx is not defined at HTMLAnchorElement.onclick 的问题 js中可以直接 function xxx(){处理事件} 但是html不能找到这个onclick事件: 写法 xxx = function () { 处理事件 }