Set click events individually for list items in the WeChat applet for loop
Y殷涛T
Y殷涛T 2017-06-23 13:41:42
0
1
2122

WeChat applet, a page similar to a news list traversed by a for loop. The default news content is partially displayed. There is an 'expand' next to each list item. After clicking, only the content of the list item will be expanded. How to write this? Baidu has some tutorials that say to use wx:key, but it doesn’t work after trying it. I don’t know how to write it

Y殷涛T
Y殷涛T

面向工资编程

reply all (1)
ringa_lee

If you ask this question, I can’t help you answer it. You can’t ask me to help you rewrite the code from beginning to end

  • reply I tried many times that afternoon and finally made it. The syntax may not be very concise but the functions are achieved. Thank you.
    Y殷涛T author 2017-06-26 10:36:52
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!