如何检测 mootools 1.4.5 中是否有中键?
我知道这可以在常规 JS 中完成,但我无法让它在 mootools 中工作。
$('someLink').addEvent('click', function(e){
if(e.button == 1){ // <-- .button doesn't exist in mootools. .which doesn't either
e.stop();
// Does some things
}
});