小程序没有docment对象,没有window对象,对fetch也暂不支持, wx.createSelectorQuery是其wxml标签的api获取方式
https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createSelectorQuery.html
大聪明
我感觉你在无理取闹
获取页面元素参考:https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createSelectorQuery.html
什么环境?微信小程序无法使用document