REG

piaoling  2015-02-05 17:59:13
//console.log(weiboRegController);
var inputs = document.getElementsByTagName('input');
//console.log(inputs);

var data = '{';
var temp = '';
var tempv ='';
for(var i=0;i   temp = inputs[i].name;
  tempv = inputs[i].value;
  if(i>0){
    data += ',"'+temp+'":'+'"'+tempv+'"';
  }else{
    data += '"'+temp+'":'+'"'+tempv+'"';
  }
 
 // eval('('+'data.'+temp+' = tempv'+')');
}
data += '}';

console.log(data);
var dataob ={};
dataob = eval('('+data+')');
console.log(dataob);
dataob.rejectFake ='clickCount=1&subBtnClick=0&keyPress=66&menuClick=0&mouseMove=150&checkcode=0&subBtnPosx=434&subBtnPosy=175&subBtnDelay=72&keycode=0,0,0,0,8,8,8,8,0,0,0,0,8,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,8,0,0,0,0,8,8,8,8,8,8,8,8,8,0,0,0,0,0,0,9,0,0,0,0&winWidth=1280&winHeight=264&userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0';
weiboRegController = window.weiboRegController;

weiboRegController.setPostData(dataob);
console.log(weiboRegController.getPostData());

weiboRegController.register()

类别 :  默认(739)  |  浏览(4333)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: