月度归档: 2024 年 10 月

4 篇文章

js中阻塞线程方法
async function executeWithDelay() { console.log("开始"); await sleep(2500); // 等待 2.5 秒 console.log("2.5 秒后执行的代码"); } executeWithDelay(); function sleep(ms) …
正则-常见密码正则校验
需要包含 大小写字母数字和特殊字符,长度在8到20 newPassword: [ {required: true, message: "新密码不能为空", trigger: "blur"}, // {min: 8, max: 20, message: "长度在 8 到 20 个字符", t…