04 2022 档案

摘要:input type="text" onkeyup="this.value = this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''" 正数,保留两位小数 onkeyup="this.val 阅读全文
posted @ 2022-04-29 14:20 石头记1 阅读(1038) 评论(0) 推荐(0) 编辑
摘要:function getBlob(url,cb) { var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.responseType = 'blob'; xhr.onload = function() { if (xhr.st 阅读全文
posted @ 2022-04-25 17:12 石头记1 阅读(327) 评论(0) 推荐(0) 编辑
摘要:var ary1 = [], ary2 = [], ary3 = [], ary4 = []; function proFn(num){ return new Promise((resolve, reject) => { var ress = num * 2 setTimeout(()=>{ res 阅读全文
posted @ 2022-04-24 11:07 石头记1 阅读(31) 评论(0) 推荐(0) 编辑
摘要:仓储—索赔单—新增页和修改页: 可新增6张图片带压缩点击看大图浏览功能,提交全部转为base64; 修改先把路径赋值到图片框,提交修改时旧图传获取的路径,新图传转换的base64, 在修改中点新增时将旧图路径转为base64再拼接新图的base64,用了promise和async await,因为路 阅读全文
posted @ 2022-04-22 17:20 石头记1 阅读(223) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示