button页面刷新问题

button有时默认的事件是submit,会致使页面从新刷新一次,有些想要的数据会一闪而过事件 解决方法input 1.input type=“button”it 2.$('btn').click(function(e){io e.preventDefult();event  }); function
相关文章
相关标签/搜索