
微信小程序
爱学习滴小可桢
如果愿意,如果能重来,我愿意更努力些,来分享我的知识,让每一个内心充满热爱的孩子点一盏灯
展开
-
wx.getUserProfile is not a function微信小程序报错
在使用小程序wx.getUserProfile接口调用时报错:wx.getUserProfile is not a function在微信官方文档中看到wx.getUserProfile接口升级的信息原创 2022-06-12 20:32:12 · 1487 阅读 · 0 评论 -
微信小程序真机调试regeneratorRuntime is not defined错误
原因是微信小程序代码中使用了async / await语法,语法太高级小程序编译不出来, 需要引用regeneratorRuntime这个模块。 具体操作可以新建一个文件夹,然后在这个文件夹目录上运行命令行窗口,npm init 得到一份package.json文件(一路回车,最后yes)。 安装依赖:npm i regenerator-runtime -S,在node_modules中就能得到regenerator-runtime这个文件。然后再返回你报错的小程序文件中去,在utils文件夹中导原创 2022-05-15 21:45:57 · 1970 阅读 · 0 评论