$.getJSON('token.aspx',function(json){ if(json.error!=1){ var token = json.token; //调用JS UPLOADER } })