上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页

2018年10月23日

less 引用阿里巴巴字体图标的线上地址

摘要: ``` @import url("//at.alicdn.com/t/font_546826_wghayhobtn.css"); ``` 阅读全文

posted @ 2018-10-23 15:45 cag2050 阅读(768) 评论(0) 推荐(0) 编辑

2018年10月22日

打造mac上最好用的Terminal

摘要: 出处:https://blog.csdn.net/kebing1011/article/details/46934533?utm_source=blogxgwz0 阅读全文

posted @ 2018-10-22 11:23 cag2050 阅读(656) 评论(0) 推荐(0) 编辑

mac安装Homebrew

摘要: 安装Homebrew 只需要一条命令,so easy ruby e "$(curl fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" `` 注意:中间需要按return键继续。 如果你的Mac OS跟我一 阅读全文

posted @ 2018-10-22 11:22 cag2050 阅读(126) 评论(0) 推荐(0) 编辑

2018年10月19日

在单文件组件中,引入安装模块里的css的2种方式:script中引入、style中引入

摘要: 在单文件组件中,引入安装模块里的css的2种方式:script中引入、style中引入 1.script中引入 2.style中引入 阅读全文

posted @ 2018-10-19 15:46 cag2050 阅读(1022) 评论(0) 推荐(0) 编辑

2018年10月18日

q:一个 JavaScript promise 库

摘要: https://github.com/kriskowal/q 阅读全文

posted @ 2018-10-18 16:34 cag2050 阅读(301) 评论(0) 推荐(0) 编辑

用 .gitlab-ci.yml 配置 gitlab 的任务(job)

摘要: 官方说明:https://docs.gitlab.com/ee/ci/yaml/ 阅读全文

posted @ 2018-10-18 14:50 cag2050 阅读(2267) 评论(0) 推荐(0) 编辑

使用 Travis 进行持续集成

摘要: 廖雪峰教程:https://www.liaoxuefeng.com/article/0014631488240837e3633d3d180476cb684ba7c10fda6f6000 阅读全文

posted @ 2018-10-18 14:47 cag2050 阅读(196) 评论(0) 推荐(0) 编辑

兼容浏览器按键事件对象的按键码属性

摘要: 兼容浏览器按键事件对象的按键码属性: IE只有keyCode属性,FireFox中有which、charCode属性,Opera中有keyCode、which属性,Chrome中有keyCode、which、charCode属性。 阅读全文

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

node api 之:process - 进程

摘要: process 对象是一个全局变量,它提供当前 Node.js 进程的有关信息,以及控制当前 Node.js 进程。 因为是全局变量,所以无需使用 require()。 阅读全文

posted @ 2018-10-18 10:37 cag2050 阅读(144) 评论(0) 推荐(0) 编辑

2018年10月17日

node-sass 安装失败的原因及解决办法

摘要: 出处:https://segmentfault.com/a/1190000010984731 windows 上用 也可以安装上。 阅读全文

posted @ 2018-10-17 16:58 cag2050 阅读(630) 评论(0) 推荐(0) 编辑

2018年10月16日

React Native 学习资料

摘要: React Native 学习资料 学习资料 | 网址 | React Native中文网 | https://reactnative.cn/ 阅读全文

posted @ 2018-10-16 10:51 cag2050 阅读(180) 评论(0) 推荐(0) 编辑

2018年10月15日

Node 内存控制

摘要: Node 只能使用部分内存,原因: node 基于 V8 构建,V8 的内存管理机制限制了内存的用量。 在实际的使用中,不小心触碰到这个内存界限,会造成进程退出。 V8 是通过堆来进行内存分配的;在代码中声明对象并赋值时,所使用对象的内存就分配在堆中;如果已申请的堆空闲内存不够分配新的对象,将继续申 阅读全文

posted @ 2018-10-15 22:45 cag2050 阅读(2189) 评论(0) 推荐(0) 编辑

2018年10月14日

Nunjucks:Mozilla 开发的 JavaScript 模板引擎

摘要: Nunjucks 中文网站:https://nunjucks.bootcss.com/ 阅读全文

posted @ 2018-10-14 15:38 cag2050 阅读(532) 评论(0) 推荐(0) 编辑

2018年10月13日

egg-bin(egg 开发工具) 知识点

摘要: 待补充 阅读全文

posted @ 2018-10-13 18:37 cag2050 阅读(1503) 评论(0) 推荐(0) 编辑

egg-scripts(egg 部署工具) 知识点

摘要: 待补充 阅读全文

posted @ 2018-10-13 18:36 cag2050 阅读(2993) 评论(0) 推荐(0) 编辑

egg 知识点

摘要: egg 的约定 约定 | 使用方法 | 路由对应controller中的方法 | 举例: ,此时对应app/controller/home.js中的index方法 扩展 Application | app/extend/application.js 扩展 Context | app/extend/c 阅读全文

posted @ 2018-10-13 18:23 cag2050 阅读(1759) 评论(0) 推荐(0) 编辑

egg-init 知识点

摘要: github 网址:https://github.com/eggjs/egg init egg init 常用命令: Create a simple type application 阅读全文

posted @ 2018-10-13 17:37 cag2050 阅读(934) 评论(0) 推荐(0) 编辑

express 与 koa 区别

摘要: express 与 koa 区别 区别项 | express | koa | | 中间件模型 | Compress 模型 | 洋葱圈模型 对象个数 | 只有2个对象:Request 和 Response | 有3个对象:Request、Response、Context (Koa 增加了 Contex 阅读全文

posted @ 2018-10-13 01:03 cag2050 阅读(473) 评论(0) 推荐(0) 编辑

2018年10月8日

页面跳转时,统计数据丢失问题探讨

摘要: 出处: https://www.barretlee.com/blog/2016/02/20/navigator beacon api/ 阅读全文

posted @ 2018-10-08 22:48 cag2050 阅读(265) 评论(0) 推荐(0) 编辑

JSBridge 知识点

摘要: 比较好的介绍文章: 1. "Android中JSBridge的原理与实现" 阅读全文

posted @ 2018-10-08 20:35 cag2050 阅读(167) 评论(0) 推荐(0) 编辑

数据埋点 知识点

摘要: 比较好的介绍文章: 1. "数据埋点(浅谈埋点方式与上报收集)" :介绍了埋点的3种方式: 代码埋点、可视化埋点(又称为框架化埋点)、无埋点(全埋点) 2. "通过页面埋点做监控却不影响性能?解密ARMS前端监控数据上报技术内幕" : 阅读全文

posted @ 2018-10-08 20:07 cag2050 阅读(419) 评论(0) 推荐(0) 编辑

ES6 模块与 CommonJS 模块的差异

摘要: ES6 模块与 CommonJS 模块的差异 区别 | CommonJS 模块 | ES6 模块 | 原因 | | | 起作用的时机 | CommonJS 模块是运行时加载(运行时) | ES6 模块是编译时输出接口(编译时) | CommonJS 加载的是一个对象(即module.exports属 阅读全文

posted @ 2018-10-08 15:11 cag2050 阅读(277) 评论(0) 推荐(0) 编辑

2018年9月29日

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 阅读(128) 评论(0) 推荐(0) 编辑

2018年9月27日

Object.create() 的含义:从一个实例对象,生成另一个实例对象

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

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

this、new,容易混淆的地方

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

posted @ 2018-09-27 21:40 cag2050 阅读(159) 评论(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 阅读(641) 评论(0) 推荐(0) 编辑

2018年9月26日

实例对象与 new 命令

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

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

JavaScript 隐式类型转换之:加号+

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

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

2018年9月25日

变量提升、函数提升,以及它们的优先级

摘要: 全部解析,详见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 阅读(913) 评论(0) 推荐(0) 编辑

2018年9月23日

React V16.x 生命周期调整

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

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

向github提交代码不用输入帐号密码

摘要: 出处:https://segmentfault.com/a/1190000008435592 阅读全文

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

2018年9月22日

事件委托(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 阅读(1047) 评论(0) 推荐(0) 编辑

2018年9月20日

js 的深拷贝

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

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

2018年9月15日

python 术语

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

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

2018年9月7日

gaea-basic-components 知识点

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

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

2018年9月5日

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 阅读(463) 评论(0) 推荐(0) 编辑

2018年9月4日

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 阅读(1204) 评论(0) 推荐(0) 编辑

2018年9月3日

ts项目报错:Import sources within a group must be alphabetized

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

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

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页

导航