Created
January 23, 2013 11:20
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,sids){ | |
for(var i=0;i<sids.length;i++){ | |
var sid = sids[i].getAttribute("id").replace(retext,""); | |
var data=begin+sid+end; | |
new XN.NET.xmlhttp({url:url,data:data,onSuccess:function(){}, | |
onError:function(){ | |
console.log("删除错误"); | |
}}); | |
} | |
} | |
var sids = document.getElementsByClassName("share-itembox"); | |
var url="http://share.renren.com/share/EditShare.do"; | |
var retext = "share_"; | |
var begin = "action=del&sid="; | |
var end = "&type="+XN.user.ruid+"&requestToken=-"+XN.get_check+"&_rtk="+XN.get_check_x; | |
xnrequest(retext,begin,end,url,sids); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://aimo1227.renren.com/#!//share/share/252516076?shfrom=010311112