摘要: 一、现象 连接着vpn,网页上可以直接打开网站,但是使用terminal 执行git clone https://chromium.googlesource.com/xxxx时, 报错:Failed to connect to chromium.googlesource.com port 443: 阅读全文
posted @ 2019-07-29 01:33 郑闯 阅读(8942) 评论(0) 推荐(0) 编辑
摘要: class Demo { // region 声明 log() : void; log(arg1: string): void; log(arg1: number, arg2: string): void; // endregion // 实现 log(arg1?: string | number, 阅读全文
posted @ 2019-02-28 16:15 郑闯 阅读(6405) 评论(0) 推荐(0) 编辑
摘要: If you have named a branch incorrectly AND pushed this to the remote repository follow these steps before any other developers get a chance to jump on 阅读全文
posted @ 2018-12-13 19:26 郑闯 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 初始化 安装依赖 配置tsconfig.json 将 compilerOptions 下的 jsx 项配置成 react 配置webpack文件 webpack.common.js webpack.dev.js 开始玩吧 项目地址 "https://github.com/zheng chuang/t 阅读全文
posted @ 2018-11-04 21:08 郑闯 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: "源码地址" 1. 先看基本使用 创建Promise时传入的回调函数是立即执行的,所以我们的Promise应该是这样(用ts实现) 2. 每个Promise对象都有三种生命状态:PENDING(未开始)、FULFILLED(已完成)、REJECTED(已失败)。生命状态只能是PENDING = FU 阅读全文
posted @ 2018-09-04 17:35 郑闯 阅读(158) 评论(0) 推荐(0) 编辑
摘要: "查看原文" webpack 4 发布了! webpack 4 作为一个零配置的模块打包器 webpack 是强大的并且有许多独一无二的特点但是有一个痛点就是配置文件。 在中型到大型项目中为webpack提供一个配置并不是什么大问题。你不可能没有任何配置。然而,对于小一些的项目这就是烦恼了,尤其是当 阅读全文
posted @ 2018-06-03 20:32 郑闯 阅读(2475) 评论(0) 推荐(0) 编辑
摘要: 这是2018年七牛云前端校招春招的一道题目 主要解题思路是fn.length 阅读全文
posted @ 2018-04-14 01:49 郑闯 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1. "supervisor" Node Supervisor is used to restart programs when they crash. Node Supervisor 是用来当程序崩溃时重启的。 It can also be used to restart programs whe 阅读全文
posted @ 2017-12-11 19:27 郑闯 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 找到/src/polyfills.ts文件 把/ IE9, IE10 and IE11 requires all of the following polyfills. /下注释掉的代码恢复 就可以兼容一些内核版本较低的手机浏览器了。 阅读全文
posted @ 2017-12-11 19:13 郑闯 阅读(699) 评论(0) 推荐(0) 编辑
摘要: "contentchild" 什么是ContentChild contentchild与viewchild作用非常相似,区别在于contentchild比viewchild多了一个布局功能 比如以上代码中的p标签的内容,就显示在child one组件的最底部 阅读全文
posted @ 2017-08-23 16:29 郑闯 阅读(997) 评论(0) 推荐(0) 编辑