首页 新闻 会员 周边

ajax获取数据当前table没有缓存数据

0
[已关闭问题] 关闭于 2017-10-20 19:08
<script type="text/javascript">

var table = document.querySelector('table');
table.GM({
supportRemind: true
, gridManagerName: 'test'
// ,disableCache:true
, isCombSorting: true
, height: '300px'
, supportAjaxPage: true
, supportSorting: true
, ajax_url: 'http://120.24.239.126:10010/publicityManagement/informationApply'
// ,ajax_headers: {'header-test': 'baukh'}
, ajax_type: 'GET'
// , query: {aplct_ID: 1}
, pageSize: 20
, columnData: [{
key: "AplctTitle",
remind: 'Title',
text: '标题',
sorting: ''
}, {
key: "AplctStyle",
remind: "Style",
text: '类型'
}, {
key: "InformationMedium",
remind: 'Medium',
text: '发布媒介'
}, {
key: "AplctPeople",
remind: 'People',
text: '申请人'
}, {

key: "InformationStartTime",
remind: 'StartTime',
text: '申请时间',
sorting: 'DESC',
template: function (createDate, rowObject) {
return new Date(createDate).format('YYYY-MM-DD HH:mm:ss');
}
}, {

key:"AplctState",
remind: 'State',
text: '状态'
},
]

});

// 日期格式化,不是插件的代码,只用于处理时间格式化
Date.prototype.format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"D+": this.getDate(), //日
"d+": this.getDate(), //日
"H+": this.getHours(), //小时
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/([Y,y]+)/.test(fmt)) {//正则表达式
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
}
for (var k in o) {
if (new RegExp("(" + k + ")").test(fmt)) {
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
}
}
return fmt;
};
document.querySelector('.new-action').addEventListener('click', function () {
window.open("宣传品资料制作查询.html");
});
document.querySelector('.delete-action').addEventListener('click', function () {

});



http://120.24.239.126:10010/publicityManagement/informationApply什么意思,为什么改为自己的服务器就不行


        
nicole01的主页 nicole01 | 菜鸟二级 | 园豆:202
提问于:2017-05-30 15:40
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册