我想使用分页插件 angular-datatable 。我用凉亭安装了它,但它不起作用。它给出了以下错误
TypeError: $elem.hide is not a function at Object.showLoading ( http://localhost:8000/vendor/angular-datatables.js:698:15 ) at postLink ( http://localhost:8000/vendor/angular- datatables.js:47:31 ) 在http://localhost:8000/vendor/angular.js:8783:44 在 invokeLinkFn ( http://localhost:8000/vendor/angular.js:8789:9 ) 在 nodeLinkFn ( http://localhost:8000/vendor/angular.js:8289:11)在compositeLinkFn(http://localhost:8000/vendor/angular.js:7680:13)在compositeLinkFn(http://localhost:8000/ vendor/angular.js:7684:13 ) 在compositeLinkFn (http://localhost:8000/vendor/angular.js:7684:13)在compositeLinkFn(http://localhost:8000/vendor/angular.js:7684:13)在compositeLinkFn(http://localhost:8000/供应商/angular.js:7684:13 )
我使用零配置,这是我使用的 html 代码
<table datatable="" class="row-border hover">
<thead>
<tr>
<th>ID</th>
<th>First name</th>
<th>Last name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Foo</td>
<td>Bar</td>
</tr>
<tr>
<td>123</td>
<td>Someone</td>
<td>Youknow</td>
</tr>
<tr>
<td>987</td>
<td>Iamout</td>
<td>Ofinspiration</td>
</tr>
</tbody>
</table>