小程序报错问题

https://restapi.amap.com 不在以下 request 合法域名列表中,请参考文档:https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html

解决:

第一种办法:编辑器,设置---项目设置---不校验合法域名打钩

第二种办法:

TAG标签: 微信小程序域名有什么用

http://www.xiaochengxub.com/read-101313.html