我需要分别乘以我上面提到的值 并加上所有*并得到输出
我尝试对表的列和行进行javascript计算,但未获得所需的输出
enter code here
<table class="webgrid">
<thead>
<tr class="header" style=" color:#333">
<th colspan="2"></th>
<th colspan="5">Primary</th>
<th colspan="5">Holiday For Life</th>
<th colspan="4">Cash Calendar</th>
</tr>
<tr class="header" style=" color:#333">
<th scope="col">Time</th>
<th scope="col">Sales</th>
<th scope="col">1</th>
<th scope="col">3</th>
<th scope="col">5</th>
<th scope="col">6</th>
<th scope="col">Total</th>
<th scope="col">15</th>
<th scope="col">1</th>
<th scope="col">5</th>
<th scope="col">15</th>
<th scope="col">Total</th>
<th scope="col">1</th>
<th scope="col">3</th>
<th scope="col">5</th>
<th scope="col">Total</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<b>12</b> to <b>1</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>1</b> to <b>2</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>2</b> to <b>3</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>3</b> to <b>4</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>4</b> to <b>5</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>5</b> to <b>6</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>6</b> to <b>7</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>7</b> to <b>8</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>8</b> to <b>9</b>
</td>
<td>1</td>
<td scope="col">1</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">1</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>9</b> to <b>10</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>10</b> to <b>11</b>
</td>
<td>1</td>
<td scope="col">0</td>
<td scope="col">1</td>
<td scope="col">0</td>
<td scope="col">3</td>
<td scope="col">57</td>
<td scope="col">3</td>
<td scope="col">2</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">137</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">3</td>
<td scope="col">45</td>
</tr>
<tr>
<td>
<b>11</b> to <b>12</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>12</b> to <b>1</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>1</b> to <b>2</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>2</b> to <b>3</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>3</b> to <b>4</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>4</b> to <b>5</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>5</b> to <b>6</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>6</b> to <b>7</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>7</b> to <b>8</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>8</b> to <b>9</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>9</b> to <b>10</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>10</b> to <b>11</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr>
<td>
<b>11</b> to <b>12</b>
</td>
<td>0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
<td scope="col">0</td>
</tr>
<tr class="header" style=" color:#333">
<th scope="col">Totals:</th>
<th scope="col">4</th>
<th scope="col">1</th>
<th scope="col">1</th>
<th scope="col">0</th>
<th scope="col">9</th>
<th scope="col">58</th>
<th scope="col">9</th>
<th scope="col">2</th>
<th scope="col">0</th>
<th scope="col">0</th>
<th scope="col">137</th>
<th scope="col">0</th>
<th scope="col">0</th>
<th scope="col">9</th>
<th scope="col">45</th>
</tr>
</tbody>
我想乘以tr + = th * td 在此处输入图片描述] 1 上面是我得到的输出的附件图像,这是错误的