console
let infos=123;
let getlist = (uri) => {
axios.get('https://data.bladex.vip/blade-visual/db/list').then(function (response) {
let msg=response.data.msg
infos =msg;
console.log('res',msg);
})
.catch(function (error) {
console.log('err',error);
});
console.log('内部',infos);
}
getlist()
console.log('外部之后',infos);
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<link href="https://code.jquery.com/mobile/1.1.2/jquery.mobile-1.1.2.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-1.6.4.js"></script>
<script src="https://code.jquery.com/mobile/1.1.2/jquery.mobile-1.1.2.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="promises">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
</body>
</html>