上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 44 下一页
摘要: 英文原文 https://scotch.io/tutorials/javascript-transpilers-what-they-are-why-we-need-them 摘译(文章内的代码有些过期,部分改动): Transpilers, or source-to-source compilers 阅读全文
posted @ 2019-01-06 22:12 Mr-chen 阅读(593) 评论(0) 推荐(0) 编辑
摘要: ES201X是JavaScript的一个版本。 ES2015新的feature let, const Scope, 块作用域 Hoisting Closures DataStructures: Objects and Arrays this let, const, Block Scope 新的声明类 阅读全文
posted @ 2018-12-29 20:22 Mr-chen 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 英文原文 (内有视频)。 以下是翻译和摘录。 最近JS状态调查结构出来了,如果你关心网页开发,你会关心这些结果。 本文探索5个takeaways并总结这些结论。 1. JavaScript Had to Evolve 2. Tools Are Better and It Makes a Differ 阅读全文
posted @ 2018-12-27 09:13 Mr-chen 阅读(194) 评论(0) 推荐(0) 编辑
摘要: axios API axios(config) axios(url[, config]) Request method aliases 别名,提供所有请求方法 axios.delete(url[, config]) axios.head(url[, config]) axios.post(url[, 阅读全文
posted @ 2018-12-24 10:49 Mr-chen 阅读(3334) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/chentianwei/p/10156459.html 之前博客:建立了一个app。使用loacal storage 来管理tokens(通过client-side anuthentication 生成)。 问题是这种方法有些麻烦。 每次要检验用户是否 阅读全文
posted @ 2018-12-23 10:53 Mr-chen 阅读(869) 评论(0) 推荐(0) 编辑
摘要: 英文原文 (本文原出处),本博在原文的基础上,进一步分析代码的结构和解释代码。 git 代码 创建一个app: vue-router-auth 本文详解了如何使用vue-router建立路由记录对路由记录进行检测,以及路由的处理。 1.如何使用vue-router来定义检测我们的routes,防止用 阅读全文
posted @ 2018-12-21 16:16 Mr-chen 阅读(642) 评论(0) 推荐(0) 编辑
摘要: Destructuring Assignment In JavaScript 更省事,代码显得也清楚。 Arrays 传统的声明赋值: 现代声明和赋值使用:拆解JS中的分配(赋值) 循环: 解释 Object.keys()得到obj的key的数组集合。 Array.protptype.forEach 阅读全文
posted @ 2018-12-21 09:37 Mr-chen 阅读(187) 评论(0) 推荐(0) 编辑
摘要: git代码:https://github.com/chentianwei411/vue-router-demo.git 使用Vue-CLI3 webpack, ESLInt, Vuex, vue-router axios (用于异步发出请求) vee-validate (用于表格验证) bootst 阅读全文
posted @ 2018-12-20 20:05 Mr-chen 阅读(1211) 评论(0) 推荐(0) 编辑
摘要: nvm(node version manger) Node版本管理 nvm是一个简单的bash script来管理多个活动的node.js版本. NPM 套件管理工具 下载(内置了npm):https://nodejs.org/en/ npm是世界上最大的开源库生态系统ecosystem。 是 No 阅读全文
posted @ 2018-12-20 11:50 Mr-chen 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 第一次遇到: 解释,类似Object.assign(target, [source...]), 把payload对象和manufacturer key/value组合起来,成为一个新对象。⚠️只是浅层拷贝(1层) 参看:https://developer.mozilla.org/zh-CN/docs 阅读全文
posted @ 2018-12-18 11:21 Mr-chen 阅读(549) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 44 下一页