$('body').on('hidden.bs.modal','.modal',function(){ $(this).removeData('bs.modal'); });不起作用。
1 回答
交互式愛情
TA貢獻1712條經驗 獲得超3個贊
$('body').on('hidden.bs.modal', '.modal', function () {
console.log("RemoveData before:" + $(this).data("bs.modal"));
$(this).removeData("bs.modal");
console.log("RemoveData after:" + $(this).data("bs.modal"))
});有用啊

添加回答
舉報
0/150
提交
取消
