这是一些代码..。
function BUTTON1()
{
// Point this at the spreadsheet we are using
var sheet = SpreadsheetApp.getActiveSheet();
// Pull some data from the spredsheet
var value1 = sheet.getRange('Value_1');
var value2 = sheet.getRange('Value_2');
// Do some basic calculations...