Plugin jQuery: jQuery’s Data Method – How and Why to Use It

jQuery’s Data Method – How and Why to Use It
http://www.jqueryrain.com/?http://demo.tutorialzine.com/2010/11/jquery-data-method/jquery-data-method.html
http://tutorialzine.com/2010/11/jquery-data-method/
28/05/2011

Nội dung

jQuery’s Data Method

jQuery’s data method gives us the ability to associate arbitrary data with DOM nodes and JavaScript objects. This makes our code more concise and clean. As of jQuery 1.4.3 we also have the ability to use the method on regular JavaScript objects and listen for changes, which opens the doors to some quite interesting applications.


Nguồn: www.jqueryrain.com/2011/05/jquery%e2%80%99s-data-method-%e2%80%93-how-and-why-to-use-it/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận