【发布时间】:2016-01-22 20:46:00
【问题描述】:
我想使用分页插件 angular-datatable 。我用 bower 安装了它,但它不起作用。它给出了以下错误
TypeError: $elem.hide 不是函数 在 Object.showLoading (http://localhost:8000/vendor/angular-datatables.js:698:15) 在 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/vendor/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>
【问题讨论】:
-
它的工作 kariyawasam ;) plnkr.co/edit/NnF2I4IMplWtIdNmRvvw?p=preview
标签: angularjs npm bower angular-datatables