//搜索時重載
var active = {
reload: function () {
var demoReload = $('#search');
party.reload({
where: {
search: demoReload.val()
}
//, done: function (res, curr, count) {
// this.where = {};
//將搜索的值清空,避免table重載時,是根據上一次的搜索值搜索的結果
//}
});
}
};
$('#searchBtn').on('click', function () {
var type = $(this).data('type');
active[type] ? active[type].call(this) : '';//搜索時重載table
});