09 2018 档案

koa 学习资料
摘要:koa 学习资料 学习资料 | 地址 | koa 中文版 | https://koa.bootcss.com/ 阅读全文

posted @ 2018-09-29 23:45 cag2050 阅读(136) 评论(0) 推荐(0) 编辑

浏览器渲染流程
摘要:一篇经典的文章 "《how browsers work》" ,讲的很详细,也有 "中文译本" 一篇好的介绍文章:https://blog.csdn.net/xiaozhuxmen/article/details/52014901 css加载: 1. css加载不会阻塞DOM树的解析 2. css加载 阅读全文

posted @ 2018-09-29 12:10 cag2050 阅读(134) 评论(0) 推荐(0) 编辑

Object.create() 的含义:从一个实例对象,生成另一个实例对象
摘要:出处:https://wangdoc.com/javascript/oop/object.html objectcreate 生成实例对象的常用方法是,使用new命令让构造函数返回一个实例。但是很多时候,只能拿到一个实例对象,它可能根本不是由构建函数生成的,那么能不能从一个实例对象,生成另一个实例对 阅读全文

posted @ 2018-09-27 21:41 cag2050 阅读(451) 评论(0) 推荐(0) 编辑

this、new,容易混淆的地方
摘要:this、new,容易混淆的地方 情况1 | 关系 | 情况2 | | | 等价于,推荐的写法是 | | 不一样 | , 这种情况下,构造函数就变成了普通函数,并不会生成实例对象。this这时代表全局对象 阅读全文

posted @ 2018-09-27 21:40 cag2050 阅读(163) 评论(0) 推荐(0) 编辑

为什么js 的constructor中是无限循环嵌套:Foo.__proto__.constructor.prototype.constructor.prototype.constructor.prototype.xxx ?
摘要:constructor始终指向创建当前对象实例的(构造)函数。 任何函数都是Function类的一个实例 那么根据上述可知:任何函数的constructor属性都指向Function类,而Function类的constructor又指向谁呢?其实也是Function类本身,也就构成了一个递归。 阅读全文

posted @ 2018-09-27 21:23 cag2050 阅读(643) 评论(0) 推荐(0) 编辑

实例对象与 new 命令
摘要:引用:https://wangdoc.com/javascript/oop/new.html JavaScript 语言的对象体系,不是基于“类”的,而是基于构造函数(constructor)和原型链(prototype)。 JavaScript 语言使用构造函数(constructor)作为对象的 阅读全文

posted @ 2018-09-26 21:52 cag2050 阅读(231) 评论(0) 推荐(0) 编辑

JavaScript 隐式类型转换之:加号+
摘要:加号+,有些情况下,它是算术加号,有些情况下,是字符串连接符号 如果字符串和数字相加,JavaScript会自动把数字转换成字符,不管数字在前还是字符串在前 此外,需要注意的是,“+”的运算方向是从左到右的,如下: 这与下面是等价的: 相比之下,下面的结果是不一样的: 阅读全文

posted @ 2018-09-26 00:04 cag2050 阅读(846) 评论(0) 推荐(0) 编辑

变量提升、函数提升,以及它们的优先级
摘要:全部解析,详见github:https://github.com/cag2050/var_function_hoisting 变量提升 console.log(a) var a / 以上代码等价于 ` var a console.log(a) ` / // 只有函数声明才有变量提升。 console 阅读全文

posted @ 2018-09-25 21:50 cag2050 阅读(459) 评论(0) 推荐(0) 编辑

函数防抖(Debounce)、函数节流 (Throttle)
摘要:一篇介绍文章:https://zhuanlan.zhihu.com/p/38313717 演示示例:http://demo.nimius.net/debounce_throttle/ 函数防抖(Debounce) 比较好的解释:https://www.jianshu.com/p/3e8e31f996 阅读全文

posted @ 2018-09-25 01:12 cag2050 阅读(920) 评论(0) 推荐(0) 编辑

React V16.x 生命周期调整
摘要:旧声明周期: table th:nth of type(5) { width: 400px; } 生命周期 | 属于阶段 | 调用次数 | 是否可以setState | 作用 | | | | getDefaultProps | 创建阶段(Mounting) | 1次(全局调用1次) | 不可以 | 阅读全文

posted @ 2018-09-23 15:09 cag2050 阅读(657) 评论(0) 推荐(0) 编辑

向github提交代码不用输入帐号密码
摘要:出处:https://segmentfault.com/a/1190000008435592 阅读全文

posted @ 2018-09-23 14:03 cag2050 阅读(419) 评论(0) 推荐(0) 编辑

事件委托(event delegation) 或叫 事件代理
摘要:比较好的介绍文章: 关于事件委托的整理 ,另附bind,live,delegate,on区别:https://www.cnblogs.com/MagicZhao123/p/5980957.html js中的事件委托或是事件代理详解:https://www.cnblogs.com/liugang vi 阅读全文

posted @ 2018-09-22 00:06 cag2050 阅读(1050) 评论(0) 推荐(0) 编辑

js 的深拷贝
摘要:出处:https://www.cnblogs.com/Chen XiaoJun/p/6217373.html 阅读全文

posted @ 2018-09-20 21:32 cag2050 阅读(110) 评论(0) 推荐(0) 编辑

python 术语
摘要:python 术语 术语英文 | 术语中文 | 说明 | | PyPI(Python Package Index)| | 搜索python包的网站:https://pypi.org/ pip、easy_install | 包管理工具 | 安装第三方模块 Anaconda | 内置了许多非常有用的第三 阅读全文

posted @ 2018-09-15 00:49 cag2050 阅读(315) 评论(0) 推荐(0) 编辑

gaea-basic-components 知识点
摘要:github:https://github.com/ascoders/gaea basic components 阅读全文

posted @ 2018-09-07 15:28 cag2050 阅读(184) 评论(0) 推荐(0) 编辑

pri 知识点
摘要:pri github:https://github.com/prijs/pri 添加路由后动态导入,使用的是 react loadable:https://github.com/jamiebuilds/react loadable。 等价于 运行 时,选择项目类型(有3种:Project、Compo 阅读全文

posted @ 2018-09-05 11:18 cag2050 阅读(485) 评论(0) 推荐(0) 编辑

react-router、react-router-dom、react-router-native 关系
摘要:react router 为 React Router 提供核心路由功能,但是你不需要直接安装 react router; 如果你写浏览器端应用,你应该安装 react router dom; 如果你写 React Native 应用,你应该安装 react router native; 当你安装 阅读全文

posted @ 2018-09-04 11:45 cag2050 阅读(1207) 评论(0) 推荐(0) 编辑

ts项目报错:Import sources within a group must be alphabetized
摘要:报错: 原因:import名称排序问题,要求按照字母从小到大排序;修改 tslint.json 中 rules 的规则 “ordered imports” 为 false 即可。 解决: 阅读全文

posted @ 2018-09-03 13:07 cag2050 阅读(6233) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示