Home > front end >  Ask god to help take a look at this time of JS can modify?
Ask god to help take a look at this time of JS can modify?

Time:10-04

<script language="javascript" & gt;
Var timer;
The function getNewsContent () {
Var postdata=https://bbs.csdn.net/topics/{" lid ":" 388 ", "kcid" : 36, "logid" : 12744096, "chcode" : "4 cec7b92aeb7de53"};
Try {
Postdata. Curp=parseInt ($f (0). The getTime ());
} the catch (e) {}
$.post (" u_server. Asp, "postdata, function (json) {
If (json. Jg==1) {
If (json. The state==1) {
ClearInterval (timer);
$(" # jd_box "). ReplaceWith (" finished ");
} else {
$(" # jd_box "). The HTML (' & lt; Span id="jd" style="width: '+ json. Percent +';"> ');
}
} else {
Layer. MSG (json. MSG, {success: function (layero, index) {
The switch (json. The action) {
Case "reload" :
Window. The location. Reload ();
break;
A case of "close" :
$f (0). The pause ();
ClearInterval (timer);
window.close();
break;
}
}});
}
}, "json");
}
$(function () {
The timer=setInterval (getNewsContent, 180000);
})
</script>

CodePudding user response:

What's the problem?
  • Related