js sleep
2018-08-11 本文已影响0人
深度_1175
==================================
function sleep(d){
for(var t = Date.now();Date.now() - t <= d;);
}
异步,后发先至,undefined,阻塞一下,sleep
==================================
for (var t = Date.now(); Date.now() - t <= 1000;);
t = "¥" + this.data.start_at + "元起送";
异步,后发先至
将默认语言设置成英语
$errorerror = <<<"LIST"
LIST;
输出大段字符串的做法
请求api,判断状态码,返回结果(或许修改后端返回的结果比修改前端的complete更有效)