
es6
lihefei_coder
这个作者很懒,什么都没留下…
展开
-
ES6 class中consructor与super的理解
首先,ES6 的 class 属于一种“语法糖”,所以只是写法更加优雅,更加像面对对象的编程,其思想和 ES5 是一致的。function Point(x, y) { this.x = x; this.y = y;}Point.prototype.toString = function() { return '(' + this.x + ',' + this.y + ')';...转载 2019-05-27 20:00:41 · 247 阅读 · 0 评论 -
koa2+es6/7打造Restful API
精贴如何使用koa2+es6/7打造高质量Restful APIhttps://www.jianshu.com/p/f59594b90500基础koa2实现restful apihttps://juejin.im/post/5b1c870e5188257d8f0f22a6基于Koa2的API服务器(一)https://www.jianshu.com/p/0b83e0f926e3其他...原创 2019-07-04 15:18:00 · 1079 阅读 · 0 评论