6

Are there any advantages/disadvantages of

<a href="javascript:;" onclick="myFunc()">do myFunc</a>

over

<a href="javascript:" onclick="myFunc()">do myFunc</a>
4

1 回答 1

1
 <a href="javascript:;" onclick="myFunc()">do myFunc</a>- 

      Will kill script execution


  <a href="javascript:" onclick="myFunc()">do myFunc</a>
       Execute Script

例如:http: //jsfiddle.net/JZje5/

于 2013-03-21T18:55:28.147 回答