📅  最后修改于: 2022-03-11 14:56:26.134000             🧑  作者: Mango
//OnlyCurrentDoc
function linkCellContents() {
var range = SpreadsheetApp.getActive().getRange("Link!A2");
var richValue = SpreadsheetApp.newRichTextValue()
.setText("More information")
.setLinkUrl("https://example.com")
.build();
range.setRichTextValue(richValue);
}