Replies: 3 comments
-
文档里是显示支持H5,结果实际很多api都只能小程序环境用,是文档写错了还是什么情况,有没有懂的大佬. |
Beta Was this translation helpful? Give feedback.
0 replies
-
代码部分:
点击Taro.showToast按钮后,浏览器控制台报错: |
Beta Was this translation helpful? Give feedback.
0 replies
-
看这个问题,目前都没人管,建议是不要用,我是直接退回到3.x的版本 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
之前用过3.x的Taro,现在我新建的项目H5中没法使用Taro.showToast和Taro.request等API,但是文档里是有这些的。


我使用taro init创建的项目,创建的参数如下:
我在H5中打印 Taro后,浏览器控制台打印如下:
我只在H5环境使用,没有测试其它环境,就是taro init命令新建的项目,没有任何修改,没法使用Taro的很多api,该怎么使用呢?都是按照文档的默认方法实现的。
Beta Was this translation helpful? Give feedback.
All reactions