php - html+jquery problem
高洛峰
高洛峰 2017-05-17 09:55:46
0
2
606

Make a function similar to answering questions. The problem now is that the first question was originally

Then I clicked on the second question after .1 (which is li)

Then mainly look at this traversal

I removed the li from the previous question first, and then added the new one, but I don’t know why there is only one

But it’s less than 1. Please help, what is the problem?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
習慣沉默

remove() is to clear everything and move it out of the loop

迷茫

You just need to remove li outside $.each. Because you perform the remove operation every time you loop, there is only one left

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template