Question: Click to view, just click on the second acquisition is the first data, click also the first data acquisition Article. Which I need to point, which of the effects of acquisition.
Code Screenshot:
In fact, the reason this question arises here: only click (note that "only") when the first data was triggered
this incident
, When the second third fourth, etc. (no matter how many) data, this view did not trigger the event
the causes: This event is triggered by id triggered, in C: foreach tag after traversal id = view "" there, not only on the various pieces of data
and therefore only in the first id = "view" when triggered
Solution: changed attribute selectors instead of id selector, so do not let id The only
after resolving Code Screenshot:
---------------------
Disclaimer: This article is CSDN blogger "standard good standard" in the original article, follow the CC 4.0 by-sa copyright agreements, please attach a reprint the original source link and this statement.
Original link: https: //blog.csdn.net/qq_39706071/article/details/84340550