上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: npm设置仓库1.npm config set registry https://registry.npm.taobao.org npm config list #查看npm当前配置 2.命令行指定 每次执行命令前加入–registry指定仓库路径npm --registry http://172. 阅读全文
posted @ 2019-09-02 19:00 jim520 阅读(4345) 评论(0) 推荐(0) 编辑
摘要: 在进行自己的模块开发时,一般我们至少会创建2个项目,一个项目进行自己的modules开发(项目aaa)。 另一个项目引入自己开发的modules,进行测试并使用(项目bbb)。 这时我们就可以使用npm link关联2个模块: 1:进入aaa项目,输入npm link,这时npm会把项目aaa暴露到 阅读全文
posted @ 2019-08-29 10:30 jim520 阅读(2010) 评论(0) 推荐(0) 编辑
摘要: 在creact react中有eject来暴露出配置文件,但是在angular cli中却只有1.X版本的cli有这个功能 https://github.com/angular/angular-cli/wiki/1-x-home 2版本以上都没有了 https://github.com/angula 阅读全文
posted @ 2019-08-15 18:05 jim520 阅读(545) 评论(0) 推荐(0) 编辑
摘要: 推荐2篇个人觉得写的还不错的文章吧 redux-observable介绍及和redux-thunk,redux-saga的区别:https://www.jianshu.com/p/c1adaa9d8a39 使用 redux-observable 实现组件自治:https://juejin.im/po 阅读全文
posted @ 2019-07-22 22:48 jim520 阅读(1431) 评论(0) 推荐(0) 编辑
摘要: 在使用create-react 构件的TS项目时如果我们想导入一个普通的 .js文件会有以下报错 Failed to compile C:/Users/JH55692/rendition_ui/public/readership/adobe/AppMeasurement.jsType error: 阅读全文
posted @ 2019-07-05 17:16 jim520 阅读(7030) 评论(0) 推荐(0) 编辑
摘要: 使用react-create-app构建的项目,当src文件夹下文件想引用src文件夹外文件因为官方限制问题会报以下错误。 Module not found: You attempted to import ****** which falls outside of the project src/ 阅读全文
posted @ 2019-07-05 15:32 jim520 阅读(4322) 评论(0) 推荐(0) 编辑
摘要: 详见:https://segmentfault.com/a/1190000011408775 阅读全文
posted @ 2019-06-28 15:23 jim520 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 详见1:https://www.jianshu.com/p/47c8e364d0bc?appinstall=1&mType=Group 及2:https://segmentfault.com/a/1190000018672269#articleHeader14 react官方:https://zh- 阅读全文
posted @ 2019-06-23 03:08 jim520 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 如果在react中想异步访问事件属性(如在setTimeout内),应该在是处理事件时调用event.persist(),这会从事件池中移除该合成函数并允许对该合成事件的引用被保留下来。 详见:https://reactjs.org/docs/events.html#event-pooling 阅读全文
posted @ 2019-06-17 18:13 jim520 阅读(11157) 评论(0) 推荐(0) 编辑
摘要: 清缓存的办法,一个是 npm cache verify, 还有一个方法npm cache clean --force 删除项目所有依赖 npm uninstall * 阅读全文
posted @ 2019-06-06 16:56 jim520 阅读(34996) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页