But after each click, the data is still the data of the previous click. New data will only be displayed after refreshing, using
$("#showModal").on("hide.bs.modal", function() {
$("#showModal").removeData("bs.modal");
});
這個(gè)方法 還是清除不了 是什么原因呢?
查閱了資料,說(shuō)是removeData方法只是針對(duì)JQuery中data()函數(shù)綁定的數(shù)據(jù)的清除,對(duì)于bootstrap不管用,還有其他的什么辦法嗎?
![這是點(diǎn)了第一次的數(shù)據(jù)條數(shù)][2]