您好,如学习指南示例所示,可以把所有的表单保护参数都设置为false即可,如下代码所示:
- var options = {
- allowDeleteColumns: false,
- allowDeleteRows: false,
- allowDragInsertColumns: false,
- allowDragInsertRows: false,
- allowEditObjects: false,
- allowFilter: false,
- allowInsertColumns: false,
- allowInsertRows: false,
- allowResizeColumns: false,
- allowResizeRows: false,
- allowSelectLockedCells: false,
- allowSelectUnlockedCells: false,
- allowSort: false
- };
- sheet.options.protectionOptions = option;
复制代码 |