button頁面刷新問題

button有時默認的事件是submit,會致使頁面從新刷新一次,有些想要的數據會一閃而過事件 解決方法input 1.input type=「button」it 2.$('btn').click(function(e){io e.preventDefult();event  }); function
相關文章
相關標籤/搜索