- 怎么使用import方式导入json?
想使用`import riverdata from "../../../data/river.json"`这种方式导入
2020-01-07 - 加入flyio依赖,工具构建npm无法运行,是什么原因?
弹窗显示已经完成构建,但是底部还显示构建***.js。最后卡死。重新打开项目,发现无法运行,也不报错,点击编译没有控制台没有任何信息,模拟器也不现实任何东西 "dependencies": { "flyio": "^0.6.14" "miniprogram-api-promise": "^1.0.4" }, "devDependencies": { "miniprogram-api-typings": "^2.9.4" } windows 工具 v1.02.1911180
2020-01-03 - setStorageSync设置不进去值
- 当前 Bug 的表现(可附上截图) - 预期表现 - 复现路径 - 提供一个最简复现 Demo 基础库:2.4.2 微信版本:6.7.3 开发工具真机调试和真机(华为Nova)storage存储不进去。开发工具可以storage存储。 [图片] [图片] [图片] 测试log如下: [publib]:1 App: onLaunch have been invoked [publib]:1 App: onShow have been invoked [publib]:1 Register Page: pages/main [publib]:1 Register Page: pages/home/main [publib]:1 Register Page: pages/meeting/main [publib]:1 Register Page: pages/register/main [publib]:1 Register Page: pages/user/main [publib]:1 Register Page: pages/user/management/main [publib]:1 Register Page: pages/detail/main [publib]:1 Register Page: pages/index/main [publib]:1 On app route: pages/main [publib]:1 Update view with init data [publib]:1 pages/main: onLoad have been invoked [publib]:1 pages/main: onShow have been invoked [publib]:1 Invoke event onReady in page: pages/main [publib]:1 pages/main: onReady have been invoked [publib]:1 Invoke event handleProxy in page: pages/main [publib]:1 On app route: pages/home/main [publib]:1 pages/main: onUnload have been invoked [publib]:1 Update view with init data [publib]:1 pages/home/main: onLoad have been invoked [publib]:1 pages/home/main: onShow have been invoked [publib]:1 Invoke event onReady in page: pages/home/main [publib]:1 pages/home/main: onReady have been invoked [publib]:1 On app route: pages/user/main [publib]:1 pages/home/main: onHide have been invoked [publib]:1 Update view with init data [publib]:1 pages/user/main: onLoad have been invoked [publib]:1 pages/user/main: onShow have been invoked main.js? [sm]:3 userInfo ? true : falsefalse {__ob__: ct}//我打印的 拿不到userInfo [publib]:1 Invoke event onTabItemTap in page: pages/user/main [publib]:1 Invoke event onReady in page: pages/user/main [publib]:1 pages/user/main: onReady have been invoked [publib]:1 pages/user/main: onHide have been invoked [publib]:1 App: onHide have been invoked
2018-12-10