<a id="one"> 测试</a> $('one').click.function(){ window.location.href="123.html"; } 转载于:https://www.cnblogs.com/xxsmile/p/4669415.html