var form = document.getElementById("table"); form.find('tbody').append('<tr><td>暂无数据</td></tr>');
Always reporting error find is not a functionYes, I have introduced jquery
闭关修行中......
Look at this document.getElementById("table"), Here we use native js to get a dom element and then call the find methodand 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
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:
Or use ng-if|ngIf to bind data in the view layer to display