var rowObj = $this.parent();
var rowObjContent = rowObj.clone(true);
var attr_value = rowObj.find('input.ebay_product_item_attribute_key').val();
//var del_str = '<span class="attr_span" data-attrkel="'+attr_value+'">'+attr_value+'<div style="display: none">'+rowHtmlContent+'</div></span>';
var attr_clone = $("<div></div>").html(rowObjContent).hide();
var del_str = $("<span><span>").addClass('attr_span').attr('data-attrkel',attr_value).html(attr_value).append(attr_clone);
$this.parents('.ebay_product_item_attribute_area').find('.attr_del_show').append(del_str);
2、替换指定的字符串
#clone复制为对象
var insertObj = siteContent.find('.ebay_product_item_attribute_area').clone();
var insertHtml = insertObj.html();
#替换函数作用于字符串,对象不能使用replace函数
insertHtml = insertHtml.replace(/(synch_attribute\()\d+(\))/,'synch_attribute('+currentSiteid+')');
insertHtml = insertHtml.replace(/(show_attr\()\d+(\))/,'show_attr('+currentSiteid+')');
$this.parents('div[maptype="site"]').find('.ebay_product_item_attribute_area').html(insertHtml);