$.ajax({
url:'/mall/credit',
type: 'get',
dataType:'json',
success: function(response){
credit = response.data.credit;
},
error: function(){
alert("error");
}
});