javascript - How do data in vue data access each other?
PHP中文网
PHP中文网 2017-06-26 10:58:09
0
3
1019

How can the value pointed by the arrow below be obtained from inside the function pointed by the arrow above

PHP中文网
PHP中文网

认证0级讲师

reply all(3)
Ty80

Separate data and control, do not do this kind of operation in data.

世界只因有你
onSlideChangeEnd: (swiper) => {
    console.log(swiper.activeIndex, this.myNum);
}
小葫芦

If the attributes in your data have dependencies, it is recommended to use calculated attributes directly, and it is best to handle your function logic by creating a new method yourself, so that your entire component will be clearer. Some personal suggestions.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!