对象不支持“bootstrapTable”属性或方法的问题
使用bootstrapTable获取数据加载分布视图,第一次是成功的,但是退出后第二次执行方法时就报对象不支持“bootstrapTable”属性或方法的问题,请问这是因为什么原因啊
前台代码:
$("#bstable").delegate(".table_name", "click", function () {
console.log($("#bstable"));
var rows = $("#bstable").bootstrapTable('getSelections');
var ID = rows[0].ID;
BootstrapDialog.show({
type: BootstrapDialog.TYPE_DEFAULT,
draggable: true,
title: "查看详情",
closeByBackdrop: "glyphicon-align-justify",
message: function (dialog) {
var $message = $('<div></div>');
$message.load("/tl_pub_StaffT/Card_Details_Staff?height=590&init=1&ID=" + rows[0].ID);
return $message;
},
height: parseInt(450),
width: parseInt(920),
IsSave: false
});
});