随笔分类 -  ecmascript

摘要:深入理解 Promise 之手把手教你写一版 https://mp.weixin.qq.com/s/_gDIO6YCswAS2dICllMG0A 深入理解 Promise 之手把手教你写一版 原创 ekko 腾讯IMWeb前端团队 2022-04-25 19:00 收录于合集#我也想做前端25个 什 阅读全文
posted @ 2022-04-26 17:30 papering 阅读(116) 评论(0) 推荐(0)
摘要:https://stackoverflow.com/questions/45591594/fetch-does-not-send-headers 阅读全文
posted @ 2019-12-17 14:37 papering 阅读(247) 评论(0) 推荐(0)
摘要:https://nodejs.org/api/child_process.html Node.js v11.1.0 Documentation Index View on single page View as JSON View another version ▼ Edit on GitHub I 阅读全文
posted @ 2018-11-07 21:23 papering 阅读(199) 评论(0) 推荐(0)
摘要:new运算符 - JavaScript | MDN https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/new new 运算符创建一个用户定义的对象类型的实例或具有构造函数的内置对象的实例。 语法节 阅读全文
posted @ 2018-10-31 15:00 papering 阅读(479) 评论(0) 推荐(0)
摘要:Date.prototype.Format = function (fmt) { // var o = { "M+": this.getMonth() + 1, //Month "d+": this.getDate(), //Day "h+": this.getHours(), //Hour "m+": this.getM... 阅读全文
posted @ 2018-10-16 17:21 papering 阅读(222) 评论(0) 推荐(0)
摘要:window.onbeforeunload - Web API 接口 | MDN https://developer.mozilla.org/zh-CN/docs/Web/API/Window/onbeforeunload 阅读全文
posted @ 2018-10-16 16:46 papering 阅读(450) 评论(0) 推荐(0)
摘要:https://developer.mozilla.org/zh-CN/docs/Glossary/Truthy falsy(虚值)是在 Boolean 上下文中已认定可转换为‘假‘的值. JavaScript 在需要用到布尔类型值的上下文中使用强制类型转换(Type Conversion )将值转 阅读全文
posted @ 2018-10-06 22:15 papering 阅读(209) 评论(0) 推荐(0)
摘要:const o = {uid:123,pid:'wwww'}const wxPayNotifyUrlBizInfo = (o) => { // TODO json let s = '' for (const k in o) { s += k + '@' + o[k] + ';' } return s 阅读全文
posted @ 2018-10-06 17:21 papering 阅读(390) 评论(0) 推荐(0)
摘要:delete 操作符 - JavaScript | MDN https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/delete const a = {m:123,n:'edd'}const b = ad 阅读全文
posted @ 2018-10-05 10:24 papering 阅读(256) 评论(0) 推荐(0)
摘要:解构 数组 对象 // i.status = '审核中' // break // case 1: // default: // i.status = '通过审核' // break // case -1: // i.status = '取消待删除' // break // case -2: // i 阅读全文
posted @ 2018-09-29 08:55 papering 阅读(445) 评论(0) 推荐(0)
摘要:const arr = [{a:23,b:34},{a:123,b:134}]console.log(arr)for (let v of arr){console.log(v)const old = v.a v.a=old*oldconsole.log(v)}console.log(arr) arr 阅读全文
posted @ 2018-09-28 23:31 papering 阅读(198) 评论(0) 推荐(0)
摘要:vue 打包后 对密码的泄漏 阅读全文
posted @ 2018-09-24 21:41 papering 阅读(432) 评论(0) 推荐(0)
摘要:CryptoJS中WordArray - qiqi715 - 博客园 http://www.cnblogs.com/qiqi715/p/9623421.html 阅读全文
posted @ 2018-09-24 11:03 papering 阅读(440) 评论(0) 推荐(0)
摘要:FileReader - Web API 接口 | MDN https://developer.mozilla.org/zh-CN/docs/Web/API/FileReader#readAsArrayBuffer() JS中的二进制数据处理 原创 有赞技术 有赞coder 2021-05-07 h 阅读全文
posted @ 2018-09-23 16:06 papering 阅读(778) 评论(0) 推荐(0)
摘要:使用crypto-js的md5加密 - cag2050 - 博客园 https://www.cnblogs.com/cag2050/p/8191301.html https://github.com/brix/crypto-js/blob/develop/README.md crypto-js Ja 阅读全文
posted @ 2018-09-22 20:43 papering 阅读(3246) 评论(0) 推荐(0)
摘要:arr=[11,22,33,44,55,66,77,88]for (const i in arr){ console.log(i) if (i 4){ console.log(arr[i]) }} arr=[11,22,33,44,55,66,77,88]for (const v of arr){ 阅读全文
posted @ 2018-09-19 23:09 papering 阅读(511) 评论(0) 推荐(0)
摘要:let - JavaScript | MDN https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/let#Temporal_dead_zone_and_errors_with_let 阅读全文
posted @ 2018-09-12 07:36 papering 阅读(157) 评论(0) 推荐(0)
摘要:Object.defineProperty() - JavaScript | MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty The 阅读全文
posted @ 2018-09-11 14:23 papering 阅读(205) 评论(0) 推荐(0)
摘要:const $ID = (p) => document.getElementById(p)const $CLASS = (p) => document.getElementsByClassName(p) 阅读全文
posted @ 2018-09-11 11:59 papering 阅读(294) 评论(0) 推荐(0)
摘要:const ThisDay = window.location.href.split('/').pop() {{define "PotentialCustomer"}} <!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta http-equiv 阅读全文
posted @ 2018-09-11 10:54 papering 阅读(351) 评论(0) 推荐(0)