<a href="#" id="a1" onclick="f();"></a>document.getElementById('a1').onclick=function(){};要实现上面的效果,用jquery怎么写