<span onclick="func1()">click</span> func1(){ event.stoppropagation(); }可以使用window.event或arguments获取,因为event是默认参数:
function func1(){ var e = getEvent(); e.cancelBubble = true; e.stopPropagetion(); } var getEvent = function(){ return window.event || arguments.callee.caller.arguments[0]; }