给出一种思路:
answerText = "<table width='' id=''>";
循环下面的行:
answerText += "<tr><td></td></tr>";
或者循环列:
answerText += "<td></td>";