JS 利用数组拼接html字符串

var cc = [];
cc.push('<td colspan=' + fields.length + ' style="padding:10px 5px;border:0;">');
cc.push('</td>');
return cc.join('');

 

posted @ 2013-10-02 10:35  李小加  阅读(411)  评论(0编辑  收藏  举报