#buttton自动刷新

每次点button就会页面自动刷新。导致获取不到input里的值。

记得始终为按钮规定type属性。

<form>
<input type = "text" placeholder = "pls enter" >
<button type = "button"></button>
</form>

 

posted @ 2018-12-21 14:34  Bluelingling  阅读(179)  评论(0)    收藏  举报