$.ajax({
url:'/mall/credit',
type: 'get',
dataType:'json',
success: function(response){
credit = response.data.credit;
},
error: function(){
alert("error");
}
});
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
可以在外面定义一个变量,然后在回调里赋值