10
09/2014
a href javascript void 0
看看下面代码错误何在?
1 显示,2 不显示
<a id="btn-test" href="javascript:void(0);">do something</a> <script> jQuery(function($){ $('#btn-test').on('click',function(){ console.log(1); $.ajax({ url:''; success:function(d){ console.log(d); } }) console.log(2); }) }) </script>