var str = '<table class="bndotamntbl" cellspacing="0" cellpadding="0" border="0">';
str += '<tbody>';
/*Create Header [Properties]*/
str += '<tr>';
str += '<td>'; SOME CONTENT
dv.innerHTML = str ;
VS
var tbl = $('<table></table>').attr({ id: "tblContent" },{cellspacing: "0" },{cellpadding: "0"},{border: "0"}).addClass("bndotamntbl");
$('<div>').attr({id:}).append(tbl);
更好:字符串 html 生成与 jquery DOM 元素创建性能明智?请解释..