随笔分类 - 前端
摘要:function dosomething(num) { return new Promise((resolve, reject) => { setTimeout(() => { console.log(num); if(num > 4) reject(num); else resolve(num);
阅读全文
摘要:1 var xhr = new XMLHttpRequest(); 2 xhr.open('GET', '文件地址.mp4'); 3 xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 4 xhr.responseType = "blob"; 5 xhr.onprogress = function (
阅读全文
摘要:本地调试如过出现请求失败请将 微信开发者工具 > 详情(右上角) > 不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书 勾上即可 微信支付小程序 C#后端
阅读全文
摘要:function getDaysWeekady(year,month) { var date = new Date(year, month-1, 1);//月份是0-11 var date2 = new Date(year, month, 1) var days = new Date(date2.getTime() - 864e5).getDate(); co...
阅读全文
摘要:一个页面有多个webview时,其中一个可以侧滑,其它禁止侧滑
阅读全文

浙公网安备 33010602011771号