$('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
提交
取消
