Created
January 20, 2012 09:46
-
-
Save wong2/1646475 to your computer and use it in GitHub Desktop.
抢人人v6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object.use("net",function(net){ | |
function f(){ | |
new net.Request({ | |
url:"http://www.renren.com/bulletin/lottery",method:"post", | |
onSuccess:function(r){ | |
if (parseInt(r.responseText)==1){alert("终于抢到了。。")} | |
else{console.log("还没...");setTimeout(f,1000)} | |
}, | |
onError:function(){alert("网络错误,请稍后再试")} | |
}).send() | |
}; | |
f(); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment