setData赋值失败是原因 如下图?

发布于 9 年前作者 panjie2755 次浏览最后编辑 9 年前来自 issues

在data里面定义的 longitude:’ ',    latitude: ’ ’ ,

然后拿出来的时候 var that = this

that.data.longitude就变为空了

打印的res.longitude是有值的。

3 回复
na39
na391 楼6 年前

看起来有两个数据 that.longitude 与 that.location.longitude,并没有 that.data.longitude

bxu
bxu2 楼6 年前

不科学

lei21
lei213 楼6 年前

没看明白要做什么