一个很简单的按钮
<input type="button" οnclick="complete();" value="<s:text name='button.complete'/>" style="margin-left:20px;width:60px;" />
在简单的页面上测试一切Ok。
在项目中一个嵌套了好多js的jsp里测试onclick不触发,但是换成
<a href="javascript:complete();"><s:text name='button.complete'/></a>
可以触发。
疑惑:什么因素影响了button的Onclick触发?