var form = document.getElementById("table");
form.find('tbody').append('<tr><td>暂无数据</td></tr>');
Always reporting error find is not a function
Yes, I have introduced jquery
学习ing2017-06-26 10:57:22
Look at this document.getElementById("table"),
Here we use native js to get a dom element and then call the find method
and find is the method of the jQuery instance. So an error will be reported.
can be modified to the following code:
$('#table tbody').append('<tr><td>暂无数据</td></tr>');
Or use ng-if|ngIf to bind data in the view layer to display