var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];
var value = sheet.getRange("D5").getValue();
var formulas = [
["=SUM(B2:B4)", "=SUM(C2:C4)", value],
["=AVERAGE(B2:B4)", "=AVERAGE(C2:C4)", "=AVERAGE(D2:D4)"]
];
var cell = sheet.getRange("B5:D6");
cell.setValues(formulas);
网址看起来像 EXCEPTION: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'Inside-Parenthesis'
Error: Cannot match any routes. URL Segment: 'Inside-Parenthesis'
at ApplyRedirects.noMatchError (apply_redirects.js:149) [angular]
at CatchSubscriber.selector (apply_redirects.js:118) [angular]
at CatchSubscriber.error (catch.js:104) [angular]
at MapSubscriber.Subscriber._error (Subscriber.js:128) [angular]
at MapSubscriber.Subscriber.error (Subscriber.js:102) [angular]
at MapSubscriber.Subscriber._error (Subscriber.js:128) [angular]
at MapSubscriber.Subscriber.error (Subscriber.js:102) [angular]
at MapSubscriber.Subscriber._error (Subscriber.js:128) [angular]
at MapSubscriber.Subscriber.error (Subscriber.js:102) [angular]
我没有使用辅助路线
http:localhost:4200/project/text-(Inside-Parenthesis)
,工作正常但我的数据带有括号。