显示带有JavaScript的cookie +消息

时间:2016-09-20 20:41:59

标签: javascript cookies

我是新的JavaScript并希望获得一些Cookie帮助。从提示中设置和检索cookie然后在html元素中显示带有该cookie的消息的最简单方法是什么?这是我到目前为止所得到的,但似乎无法显示信息。

谢谢!



function getAttendees() {
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = ss.getSheetByName('Attendees');

    var inviteSheet = ss.getSheetByName('Invitees');
    var inviteLRow = inviteSheet.getLastRow();
    var inviteRange = inviteSheet.getRange("K2:K" + inviteLRow);
    //flattened array of invitees
    var getInvite = inviteRange.getValues()
        .reduce(function(a, b) {return a.concat(b);}, []);

    var attendLRow = sheet.getLastRow();
    var getAttendRange = sheet.getRange("A2:A" + attendLRow)

    //flattened array of attendees
    var getAttend = getAttendRange.getValues()
        .reduce(function(a, b) {return a.concat(b);}, []);

    //Items with no match
    Logger.log(missed(getInvite,getAttend).join(', ')) 

}




0 个答案:

没有答案