摘要: 在componentDidMount中,初始化mapCtx。 Taro.getLocation({ type: 'wgs84', success(res) { _this.setState({ latitude = res.latitude, longitude = res.longitude }) 阅读全文