一步步实现 Promises/A+ 规范 -- 系列三

一步步实现 Promises/A+ 规范 – 系列 系列一 – 实现规范对状态以及部分 then 方法的要求 系列二 – 实现 then 链 系列三 – 实现 catch all resolve reject 方法 catch 实现 上一篇文章实现了 Promises/A+ 规范中对 then 方

一步步实现 Promises/A+ 规范 -- 系列二

一步步实现 Promises/A+ 规范 – 系列 系列一 – 实现规范对状态以及部分 then 方法的要求 系列二 – 实现 then 链 系列三 – 实现 catch all resolve reject 方法 then 链实现 上一篇文章实现了 Promises/A+ 规范中对 state

一步步实现 Promises/A+ 规范 -- 系列一

一步步实现 Promises/A+ 规范 – 系列 系列一 – 实现规范对状态以及部分 then 方法的要求 系列二 – 实现 then 链 系列三 – 实现 catch all resolve reject 方法 Promises/A+ 规范 Promises/A+ 规范官网定义 一些术语 翻译: promise

flexbox 深入理解

flexbox 巩固加深 配合flexbox工具食用更佳 flexbox 支持情况 整体印象 flex: 0 ( flex-grow ) 1 ( flex-shrink ) auto ( flex-basis ); 默认值-( 属性 ) flex-basis 控制着元素在沿着主轴上 grow 和 shrik 之前最终能

Vue2.x响应式原理, Vue 与 React 响应式简单对比

👉 配合 PPT 食用更佳 👈 实现的最终目标 1 2 3 4 5 6 7 8 9 10 11 12 13 14 const demo = new Vue({ data: { text: "before", }, // 对应的template 为 <div><span>{{text}}</span></div> render(h){ return h('div', {}, [ h('span', {}, [this.__toString__(this.text)]) ]) } }) setTimeout(function(){ demo.text = "after" },

命令行常用命令

npm加速 –registry=http://registry.npm.taobao.org git git --version查看版本号 git config --global user.username <USerNamE> 告诉Git你的GitHub账号 git config --global user.name "<Your Name>" 设定名字 git config --global user.email "<youremail@example.com>" 设定电子邮箱 git init 把当前文件

Javascript 原型链小结

更新(2018-04-15) 原型链理解:每个函数对象都含有一个原型对象,当访问某个对象的属性时,会先从自身属性查找(函数对象则从自身的原型对

Ubuntu 安装及配置

分区 逻辑分区,200M,起始,Ext4日志文件系统,/boot;(引导分区200M足够) 逻辑分区,4000M,起始,交换空间,无挂载点;(交

微信小程序分享

大家好,我是技术部做前端工作的Ryan,关于微信小程序的概念和功能以及它的前景,前边Tim已经介绍的非常详细,而我将以前端的视角为大家介绍一

ES6 学习笔记(八)-- class

class 基本语法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 //ES5 function Point(x,y){ this.x = x; this.y = y; } Point.prototype.toString = function () { return '(' + this.x + ', ' + this.y + ')'; }; //ES6 class Point { //constructo

ES6 学习笔记(五)-- 函数与对象

函数 参数的默认值 基本用法 1 2 3 4 5 6 7 function log(x, y = 'World') { console.log(x, y); } log('Hello') // Hello World log('Hello', 'China') // Hello China log('Hello', '') // Hello 与解构赋值默认值结合使用 1 2 3 4 5 6 7 8 function foo({x, y = 5}) { console.log(x, y); }