-
-
Save VMatrix1900/d541a47dc3e2241ceb25 to your computer and use it in GitHub Desktop.
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
function xnrequest(retext,begin,end,url,pids){ | |
for(var i=0;i<pids.length;i++){ | |
var pid = pids[i].getAttribute("id").replace(retext,""); | |
var data=begin+pid+end; | |
new XN.NET.xmlhttp({url:url + "?" + pid,data:data,onSuccess:function(){}, | |
onError:function(){ | |
alert("删除错误"); | |
}});}} | |
var pids = document.getElementsByClassName("user"); | |
var url = "http://page.renren.com/exitfans" | |
var begin = "pid="; | |
var end = "&requestToken=-"+XN.get_check+"&_rtk="+XN.get_check_x; | |
var retext = "mypage_"; | |
xnrequest(retext,begin,end,url,pids); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment