从以上可以看出在alert的时候 数据并还没有加载出来 控制台也并没有打印出信息/所以此时是取不到数据的。
使用ajaxComplete()方法可以在请求完成时运行要执行的代码">
Requirement description: Data can be added dynamically on the page, such as table, and rows can be added dynamically by clicking the button. Or when the page
is loaded, the table data is obtained from the background through ajax. And now we want to get one of the values, how to get it?
If you want to obtain it through an event such as click, mouseover, etc., you can use the live() method
Beijing | Shenzhen |