异步加载url

This commit is contained in:
Harvey Zack committed 2018-10-25 18:04:42 +08:00
1 parent 552783e3ce
commit 4da0ac7650
4 files changed
+22 -8

No files matched your search

+4
View File
@@ -105,3 +105,7 @@ export function tooltip(target, msg, pos = 'up') {
target.setAttribute('data-balloon', msg);
target.setAttribute('data-balloon-pos', pos);
}
export function sleep(ms = 0) {
return new Promise(resolve => setTimeout(resolve, ms));
}