摘要: 直接上代码 var url = "https://www.cnblogs.com/xuchunlin/p/14848864.html" var time = 10000; var timeout = false; var request = new XMLHttpRequest(); var tim 阅读全文
posted @ 2021-06-28 17:14 淋哥 阅读(2760) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 function doSave(value, type, name) { var blob; if (typeof window.Blob == "function") { blob = new Blob([value], {type: type}); } else { var Blob 阅读全文
posted @ 2021-06-28 17:12 淋哥 阅读(319) 评论(0) 推荐(0) 编辑
摘要: function sleep(n) { var start = new Date().getTime(); while (true) { if (new Date().getTime() - start > n) { break; } } } console.log(11111111) sleep( 阅读全文
posted @ 2021-06-28 17:11 淋哥 阅读(133) 评论(0) 推荐(0) 编辑