function Essentialliteracy() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('A2').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('requests'), true);
spreadsheet.getRange('B12').activate();
spreadsheet.getCurrentCell().setValue('1107: Essential Literacy (1 credit ELE, Gr. 9-10)');
spreadsheet.getRange('A2').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('requests'), true);
spreadsheet.getRange('D12').activate()
.setValue('0.5’);
};
function honorsenglishI() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('A2').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('requests'), true);
spreadsheet.getRange('B2').activate();
spreadsheet.getCurrentCell().setValue('1103: Honors English I (1 credit ENG, Gr. 9, weighted)');
spreadsheet.getRange('A2').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('requests'), true);
spreadsheet.getRange('C2').activate()
.setValue('0.5');
};
的输入变量的 setter/ngOnChanges
方法仅被调用一次?
ngOnChanges仅在第一次selectedRow触发数据时才提供控制台输出。如果selectedRow的值未更改,则更改ngOnChanges。
子图表组件:
component
父组件html:
export class ChartComponent implements OnInit, OnChanges {
@Input() chartData;
ngOnChanges(changes: SimpleChanges) {
console.log(changes);
}
}
父组件:
<app-chart [chartData]="chartData" ></app-chart>