jquery can not afford to monitor the effect of small problems Summary

In writing the front page, because I was adding new html string with jquery to achieve dynamically add, delete, add each new generation needs a new id, when I listen to new id, but it does not work.

Thinking a lot of ways, I thought, if you will listen to statements $(id).click(fun);written in a function when the function is finished, the listener becomes ineffective. This is obviously wrong.

1. jquery selectors to bring in the id #, the page where the id is not required#

2. The monitor must first have the object being monitored in order to monitor the order backwards does not work!

On two issues above, I find the reasons for a long time, like a number of solutions, and finally found the time to write their own time is not precise enough.

Guess you like

Origin www.cnblogs.com/boxker/p/11349960.html