Skip to content

Instantly share code, notes, and snippets.

@wong2
Created January 20, 2012 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wong2/1646475 to your computer and use it in GitHub Desktop.
Save wong2/1646475 to your computer and use it in GitHub Desktop.
抢人人v6
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