摘要: function dosomething(num) { return new Promise((resolve, reject) => { setTimeout(() => { console.log(num); if(num > 4) reject(num); else resolve(num); 阅读全文
posted @ 2020-11-13 15:52 oneall 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 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 ( 阅读全文
posted @ 2019-09-20 15:24 oneall 阅读(8230) 评论(0) 推荐(0) 编辑
摘要: --把一张表的内容更新到另一张表 update 表1 set 表1.Store=t2.Name from 表2 t2 where 表1.id=t2.id --备份一张表 create table tab_new like tab_old (使用旧表创建新表) create table tab_new as select col1,col2… from tab_old definition o... 阅读全文
posted @ 2019-04-26 10:56 oneall 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 微信退款需要证书 data为已封装好的xml数据 具体怎么封装>打开 阅读全文
posted @ 2018-08-31 16:39 oneall 阅读(787) 评论(3) 推荐(0) 编辑
摘要: 使用的是MVC .NET Framework4 微信小程序支付 小程序端源码 MVC项目发布前的配置 阅读全文
posted @ 2018-08-28 15:49 oneall 阅读(6733) 评论(8) 推荐(3) 编辑
摘要: 本地调试如过出现请求失败请将 微信开发者工具 > 详情(右上角) > 不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书 勾上即可 微信支付小程序 C#后端 阅读全文
posted @ 2018-08-28 15:21 oneall 阅读(6221) 评论(2) 推荐(0) 编辑
摘要: 第一次发布MVC项目,打开网站 未能加载文件或程序集“System.Web.Http.WebHost, Version=4.0.0.0, ”或它的某一个依赖项。系统找不到指定的文件。 问题原因:缺少配置文件(System.Net.Http.Formatting.dll,System.Web.Http 阅读全文
posted @ 2018-08-24 17:10 oneall 阅读(2719) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-08-23 10:39 oneall 阅读(1646) 评论(2) 推荐(0) 编辑
摘要: 一个页面有多个webview时,其中一个可以侧滑,其它禁止侧滑 阅读全文
posted @ 2018-08-06 16:35 oneall 阅读(1049) 评论(0) 推荐(0) 编辑