//var tgtttime = new Date("2014/05/26 09:59:30");
var tgtttime = new Date("2014/05/26 13:59:45");
var yyyy1111 = setInterval(function(){
var now = new Date();
console.log(now);
if (now>=tgtttime) {
var yager1111 = setInterval(function() {
$.ajax({
url: "/mvc/PostComment/Add.aspx",
data: JSON.stringify({
blogApp: "TomXu",
postId: cb_entryId,
body: "抢书,拿下,好书一定要拿下啊",
parentCommentId: 0
}),
type: "post",
dataType: "json",
contentType: "application/json; charset=utf8",
success: function(n) {
if (n) {
console.log("好的")
}
},
error: function(n) {
console.log("error");
}
});
}, 20);
setTimeout(function(){
clearInterval(yager1111);
delete yager1111;
clearInterval(yyyy1111);
delete yyyy1111;
}, 22000);
}
}, 20000);