摘要: 1、import ... form...替代 require() //不接收对象 require:require('s.css'); //(es5) improt 's.css' //(es6) //接收对象 var o = require('s.js'); //es(5) import o for 阅读全文
posted @ 2019-02-25 17:21 yoowei 阅读(5247) 评论(0) 推荐(0) 编辑
摘要: 在使用import引用模块时,如何正确使用{} 例如:有两个文件,home.js、user.js 一:不使用{}: 当需要在home.js中引入user.js的时候 //home.js 文件中import user from './user';对于上面的这种引入方法,只有user.js文件中提供默认 阅读全文
posted @ 2019-02-25 17:01 yoowei 阅读(1540) 评论(0) 推荐(0) 编辑
摘要: 在运行RN项目的时候,报 Command Analyze failed with a nonzero exit code ,试着将build System 修改下 阅读全文
posted @ 2019-02-25 11:21 yoowei 阅读(2254) 评论(0) 推荐(0) 编辑