$.ajax({
url:"http://passport.jd.com/loginservice.aspx?method=Login",
type:‘get‘,
scriptCharset:‘utf-8‘,
dataType:‘jsonp‘,
async:‘false‘,
success:function(res){
if(res.Identity.IsAuthenticated){
$.ajax({
url:base_car_manange_api+‘/mycar/listService‘,
type:‘get‘,
scriptCharset:‘utf-8‘,
dataType:‘jsonp‘,
async:‘false‘,
success:function(res){
if(res.code=="success"){
if(res.data.length>0){
原文:http://www.cnblogs.com/zhishaofei/p/4274403.html