form表单中点击button的时候样式改变

原因是 form中点击button的时候 会刷新页面

解决方案:将button的type 写成button。

posted @ 2019-11-19 20:58  唐糖PJS  阅读(452)  评论(0编辑  收藏  举报