syntax-error

Notify via email when a cell is updated in google spreadsheet

旧街凉风 提交于 2020-08-20 11:41:33
问题 I am new to script and added this script which worked: function sendEmailAlert() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var cellValue = ss.getActiveSheet().getActiveRange().getA1Notation(); var getRow = ss.getActiveSheet().getActiveRange().getRow(); var sheetname = ss.getActiveSheet().getName(); var user = Session.getActiveUser().getEmail(); var Toemail = '....email address....'; var subject = 'New Entry -' + ss.getName(); var body = 'Your file has a new entry in - ' + sheetname +

Notify via email when a cell is updated in google spreadsheet

心已入冬 提交于 2020-08-20 11:41:32
问题 I am new to script and added this script which worked: function sendEmailAlert() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var cellValue = ss.getActiveSheet().getActiveRange().getA1Notation(); var getRow = ss.getActiveSheet().getActiveRange().getRow(); var sheetname = ss.getActiveSheet().getName(); var user = Session.getActiveUser().getEmail(); var Toemail = '....email address....'; var subject = 'New Entry -' + ss.getName(); var body = 'Your file has a new entry in - ' + sheetname +

Syntax Error when directly access attribute on empty object {} [duplicate]

六眼飞鱼酱① 提交于 2020-07-30 04:02:46
问题 This question already has answers here : JavaScript object literals syntax error (2 answers) Uncaught SyntaxError: Unexpected token instanceof (with Chrome Javascript console) (4 answers) Closed 3 years ago . > "[object Number]" === Object.prototype.toString.call(1) // #1 < true > "[object Number]" === {}.toString.call(1) // #2 < true > {}.toString.call(1) === "[object Number]" // #3 < SyntaxError: Unexpected token '.' > ({}).toString.call(1) === "[object Number]" // #4 < true > {}.toString