摘要: 从github 将项目 clone到本地后,运行gulp 启动项目时,出现这个问题的原因是: 1.clone 项目连同 nodemodules目录也一起下载到本地。 解决方式: 1.从本地删除nodeModule文件夹 2.在项目目录下 运行 npm cache clean npm install 阅读全文
posted @ 2017-08-26 13:16 Mrdo 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: 这个问题是这样,需要在已有github账号的A机器上,再创建一个github账号,新账号创建完毕,将代码通过机器A push上之后,再另一台机器B,clone 这个项目时报出了如下错误: Permission denied (publickey).fatal: Could not read from 阅读全文
posted @ 2017-08-26 12:50 Mrdo 阅读(505) 评论(0) 推荐(0) 编辑
摘要: Assuming that you are using nvm and multiple versions of node installed, here is the solution: The problem is, you have multiple versions of node inst 阅读全文
posted @ 2017-08-03 22:59 Mrdo 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 更新 node.js 版本到 v6.11.1. https://github.com/facebook/react-native/issues/15040 阅读全文
posted @ 2017-08-03 21:57 Mrdo 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 待.. 阅读全文
posted @ 2017-04-08 22:17 Mrdo 阅读(139) 评论(0) 推荐(0) 编辑
摘要: scrollHeight最终数值的组成: 官方的解释是:scrollHeight的高度等于当内容完全适配浏览器viewpoint后的高度,这个高度包括padding-top以及padding-bottom。除此之外,如果内容超出了浏览器view窗口,scrollHeight反映的也是内容实际高度(s 阅读全文
posted @ 2017-03-28 17:19 Mrdo 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 什么是document.body? 什么是 document.documentElement? document.documentElement 与 document.body的应用场景 获取 scrollTop 方面的差异 在firefox(47.0)及 IE(11.3)下获取scrollTop, 阅读全文
posted @ 2017-03-28 12:38 Mrdo 阅读(37444) 评论(3) 推荐(2) 编辑
摘要: 最近频繁的做一些通过iframe在a页面嵌入b页面需求。总结下来,有以下问题需要解决 1.如何同步iframe与嵌入内容的高度 2.将b页面载入到a页面后,如何隐藏掉b页面上的元素,如左导航,顶部导航等等 -如何同步iframe与嵌入内容的高度 a)获取由iframe引入的页面高度 contentW 阅读全文
posted @ 2017-03-27 20:34 Mrdo 阅读(1283) 评论(1) 推荐(0) 编辑
摘要: 在angular1.6版本里,使用ui-router如果报这个错误,可以将ui-router升级到最近版本即可。ui-router version v0.4.2 阅读全文
posted @ 2017-03-06 15:36 Mrdo 阅读(2810) 评论(0) 推荐(0) 编辑
摘要: 1.运行:sudo rm -rf /usr/local/lib/node_modules/npm 2.重新安装最新版本的node,最新版本的node已经集成了npm,所以无需另外安装。 3.运行:sudo npm install -g cnpm 安装cnpm 4.在项目目录下运行:sudo cnpm 阅读全文
posted @ 2017-03-05 16:26 Mrdo 阅读(2897) 评论(0) 推荐(0) 编辑