Home > Article > Web Front-end > A brief analysis of JS delegate and live_javascript skills
There are two methods in jquery that can be used to bind automatically appended DOM objects. They are live and delegate. In fact, these two methods are a variant of the bind method. When it comes to fixed DOM objects, We usually just use bind, but for DOM objects dynamically generated by objects, using bind is powerless. At this time, live and delegate come into play, haha.
The live method is used to bind a certain object (of a certain type) and bind methods to them
$("#list").delegate("td ", "click", function () {
Copy code });
});