实现单文件删除

This commit is contained in:
F嘉阳
2018-02-09 15:28:27 +08:00
parent 5db6f909c4
commit c66b0bd9ae
15 changed files with 169 additions and 21 deletions

View File

@@ -0,0 +1,30 @@
/*
/!*
* the first time to call
*!/
setTimeout(function () {
Push();
// alert("setTimeout called");
}, 200);
setInterval(function () {
Push();
//alert("setInterval called");
}, 3000);
//con.showMsg('登录成功');
function Push() {
$.ajax({
type: "POST",
url: "../CheckLoginServlet?dt=" + new Date().getTime(),//why getTime and wont use
data: {},
beforeSend: function () {
},
success: function (data) {
var obj = eval("(" + data + ")");//eval使用前要先加括号才能得到完整的json数据
if (obj.msg != 0) {
con.showMsg(obj.msg);
}
}
})
};*/