<button id="login" type="button">登录</button>
<input id="login" type="button" value="登录">

两种按钮效果看起来差不多,但是如果使用ajax,必须使用普通<button></button>的样式,才能提交成功。即第一种的样式。
<button id="login" type="button">登录</button>
<input id="login" type="button" value="登录">

两种按钮效果看起来差不多,但是如果使用ajax,必须使用普通<button></button>的样式,才能提交成功。即第一种的样式。
1280

被折叠的 条评论
为什么被折叠?