1、给超链接a 添加js函数
直接通过 href 添加js函数
< a href='javascript:test();'>Previous</a >
2、给按钮添加js函数
<button onclick="test();" >点我</button>
1、给超链接a 添加js函数
直接通过 href 添加js函数
< a href='javascript:test();'>Previous</a >
2、给按钮添加js函数
<button onclick="test();" >点我</button>