当我以这种方式创建 SlickGrid 时:
var grid = new Slick.Grid(
element, //needs to be something jQuery can act on: element, css selector, etc.
dataView,
[], //columns
gridOptions
);
然后像这样设置列:
grid.setColumns(parameters.columns);
grid.autosizeColumns();
我的列是否很宽?