下面是商务通的url地址 麻瓜程序员要提取其中的 &p后面的参数 , 这个是记录商务通的来源地址

var gjurl=”http://ala.zoossoft.com/LR/Chatpre.aspx?id=ALA99462251&cid=141650343471279156111&lng=cn&sid=1447057520936281725109&p=http%3A//ruxian.020gb.net/mtzf/341.html&rf1=http%3A//ruxian.020gb&rf2=.net/&e=%u4E73%u817A%u79D1pc%u7AD9%u4E2D%u95F4%u5F39%u7A97%u94FE%u63A5&bid=&d=1447063405416″;
gjurl=gjurl.split(“&”);
for(var i=0;i<gjurl.length;i++){
if(gjurl[i].indexOf(“p=”)!=-1){
var sjurl=unescape(gjurl[i].substr(2));
alert(sjurl);
}
}

Sorry, the comment form is closed at this time.

   
© 2012 Ai-WEB的博客 Suffusion theme by Sayontan Sinha