二级标题
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
<script>
const waitTime = (time = 1000) => {
return new Promise((resolve) => {
setTimeout(() => {
console.log('定时器执行')
resolve(true);
}, time);
});
};
async function getFakeCaptcha( ) {
await waitTime(2000);
return {
a:558,
b:"ddwew"
}
}
console.log(getFakeCaptcha().then(res=>{
console.log('ddddddd',res)
}),'getFakeCaptcha')
</script>
</html>
打印效果
|