SOURCE

console 命令行工具 X clear

                    
>
console
let generateElement = (...args) => `
    <tr>
      <td scope="row">${args[0]}</td>
      <td>${args[1]}</td>
      <td>${args[2]}</td>
    </tr>
`

$('#table-container').append(generateElement(1,2,3,4))
<table class="table">
  <thead>
    <tr>
      <th>t1</th>
      <th>t2</th>
      <th>t3</th>
    </tr>
  </thead>
  <tbody id="table-container">
    <tr>
      <td scope="row">11</td>
      <td>22</td>
      <td>33</td>
    </tr>
    <tr>
      <td scope="row">11</td>
      <td>22</td>
      <td>33</td>
    </tr>
  </tbody>
</table>