如何 post 将数据形成为 Google Apps 脚本

How to post form data to Google Apps Script

从我的 HTML 页面到我的 GAS 脚本 post 形成数据的 best/easiest 方法是什么?

$(document).ready(function() {
  $.getJSON(SCRIPT_URL+"?callback=?", { method:"addRow"}, function (data) { alert(JSON.stringify(data)); }); 
});

如果您正在使用 Apps Script HTML 服务,您可以使用 google.script.run

Google Documentation - Client-side API - call server-side Apps Script functions

从 Google 以外的应用程序或网站向 Apps 脚本发出 HTTP 请求 URL。