2018

从tom大叔那想着拿书的,呵呵。

//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);
posted @ 2014-06-18 22:06  尼枚哉  阅读(309)  评论(0编辑  收藏  举报

一件事,坚持做下去,会让你看得到方向。