但是每一次點擊之后數(shù)據(jù)還是前一次點擊的數(shù)據(jù),只有刷新之后才會顯示新的數(shù)據(jù),用了 $("#showModal").on("hide.bs.modal", function() { $("#showModal").removeData("bs.modal"); });這個方法 還是清除不了 是什么原因呢? 查閱了資料,說是removeData方法只是針對JQuery中data()函數(shù)綁定的數(shù)據(jù)的清除,對于bootstrap不管用,還有其他的什么辦法嗎? ![這是點了第一次的數(shù)據(jù)條數(shù)][2]
bootstrap 模態(tài)框彈框后數(shù)據(jù)的清除
DIEA
2018-11-15 14:10:05