实现拷贝dom与其属性值,比如input=filevar newObject = jQuery.extend(false, {}, $(this));$("#test").append(newObject);//这样会覆盖;$(this).clone().appendTo("#test"); //这样不会覆盖,但没拷贝到属性值
file对象有安全问题,无法clone值,也无法赋值,除非你用ie6.。其他可以