为什么我按照路径走进行缓存但还是underfined,里面的id是有值的
为什么我按照路径走但还是underfined?Why am I following the path but still undefined?
为什么我按照路径走但还是underfined?为什么我按照路径走进行缓存但还是underfined,里面的id是有值的
Why do I cache according to the path, but it is still underfined, and the ID in it has value
回答:
this指向有问题
在设置前打印一下看看
发完整的代码,this的指向问题
ownerbymobile里面是有id并且有值的
this.data.data.ownerbymobile.id
不行的话,看下你是怎么赋值,就怎么取