Using a button click event, destroy the ag-grid
问题 Using plain old javascript version of ag-grid. I would like to destroy the ag-grid that is in a div from a button click event. How do i destroy the grid? 回答1: There is a method named destory() . As per documentation: destroy() Gets the grid to destroy and release resources. If you are using Angular (version 1 or 2) you do not need to call this, as the grid links in with the AngularJS 1.x lifecycle. However if you are using Web Components or native Javascript, you do need to call this, to