<a href="javascript:alert('abc');">herf属性是可以写js语句的</a> <a href="javascript:;">通常的写法</a> <a href="#">点击时会跳转到页面顶部</a>