ʹÓÃclone£¨£©·½·¨¡£jQueryµÄ·½·¨¿Ë¡ÈκÎJavaScriptÖеÄDOM¶ÔÏó¡£
// Clone the DIV
var cloned = $('#somediv').clone();
jQueryµÄclone£¨£©·½·¨²»¿Ë¡һ¸öJavaScript¶ÔÏ󡣿Ë¡JavaScript¶ÔÏó£¬Ê¹ÓÃÏÂÃæµÄ´úÂë¡£
// Shallow copy
var newObject = jQuery.extend({}, oldObject);
// Deep copy
var newObject = jQuery.extend(true, {}, oldObject);
12¡£²âÊÔ£¬Èç¹ûÊÂÇéÊÇÒþ²ØʹÓÃjQuery
ÎÒÃÇʹÓá£Òþ²Ø£¨£©¡£ÔÚjQueryµÄshow£¨£©·½·¨À´¸Ä±äÔªËصÄÖªÃû¶È¡£Ê¹ÓÃÒÔÏ´úÂëÀ´¼ì²éÒ»¸öÔªËØÊÇ·ñÊǿɼû»ò²»¿É¼û¡£
¡¡