当前位置:网站首页>Wechat applet: click the button to switch frequently, overlap the custom markers, but the value does not change

Wechat applet: click the button to switch frequently, overlap the custom markers, but the value does not change

2022-06-23 09:22:00 Crazy_ GirlLL

background : Click to switch the live elements on the right , change marker The following live information (-22.9℃), also markers name ( Shangzhi City ) And live information (-22.9℃) It is not an interface acquisition , This project also uses a custom callout

Customize callout Here is an example of : I need to take it myself https://blog.csdn.net/Crazy_GirlLL/article/details/113556336

The structure is as follows

According to the big man's prompt , In custom components customMarkers Although it is also every request , But inside id It is the same. , So the click button will appear , Call interface , Data is also requested to , But it hasn't been updated to customMarkers Inside ,, Every time you click a button , That is, before requesting new live information , Just empty customMarkers The data in it , This will force the rendering to

原网站

版权声明
本文为[Crazy_ GirlLL]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206230909117631.html