10 2019 档案

摘要:八段代码彻底掌握 Promise https://juejin.im/post/597724c26fb9a06bb75260e8 1.Promise的立即执行性 var p = new Promise(function(resolve, reject){ console.log("create a 阅读全文
posted @ 2019-10-23 18:23 ZJT_T 阅读(206) 评论(0) 推荐(0)
摘要:在vue.config.js中配置pwa,重跑下项目就行了 // 以下是pwa配置 pwa: { iconPaths: { favicon32 : 'faviconfc.ico', favicon16 : 'faviconfc.ico', appleTouchIcon: 'faviconfc.ico 阅读全文
posted @ 2019-10-14 16:08 ZJT_T 阅读(1667) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div id="app"> <input type="" name="" v-model='message'><br> <span v-bi 阅读全文
posted @ 2019-10-10 10:35 ZJT_T 阅读(501) 评论(0) 推荐(0)
摘要:var test = function(a){ this.a = a; return function(b){ return this.a + b; } }(function(a,b){ return a; }(1,2)) test(4) 解析 var test = function(a){ th... 阅读全文
posted @ 2019-10-09 15:26 ZJT_T 阅读(351) 评论(0) 推荐(0)