uniapp 编译后还是uni. 不是wx.,请问微信小程序如何识别并正确编译?

小程序 文章 2022-01-14 11:40 419 0 全屏看文

AI助手支持GPT4.0

uniapp 编译后还是uni. 不是wx.,请问微信小程序如何识别并正确编译?After uniapp is compiled, it is still uni. not wx., how can wechat applet identify and compile it correctly?

uniapp 编译后还是uni. 不是wx.,请问微信小程序如何识别并正确编译?

回答:

吃鱼先生:

你懂我意思吧,虽然uni的实现没这么简单

(function (uni) {  uni.getStorageSync('xxxx')}(wx))
微喵网络:

请移步uni-app官方社区,第三方出的问题官方不负责解决

圣殿骑士:

你用的是 Hbuilder吗?

应该会自动转化的。。。你看下是不是配置有问题

-EOF-

AI助手支持GPT4.0