Javascript 如何使用掌上电脑';你的手机能用吗?
当我想将行设置为只读时,在handsontable中Javascript 如何使用掌上电脑';你的手机能用吗?,javascript,handsontable,Javascript,Handsontable,当我想将行设置为只读时,在handsontable中 cells: function(row, col, prop) { var cellProperties = {}; if (row === 1) { cellProperties.readOnly = true; } return cellProperties; } 以及在设置列时 cells: function(row, col, prop) { var cellProperties = {}; if (
cells: function(row, col, prop) {
var cellProperties = {};
if (row === 1) {
cellProperties.readOnly = true;
}
return cellProperties;
}
以及在设置列时
cells: function(row, col, prop) {
var cellProperties = {};
if (prop === 'id') {
cellProperties.readOnly = true;
}
return cellProperties;
}
这些都很好,但是JS是如何工作的呢?因为我看不到任何赋值或调用任何函数。单元格属性用于设置单元格将如何成为渲染器,实际上,在您的情况下,您是根据需要更新单元格属性,因此在渲染单元格时,将使用更新的配置 干杯