2017-01-17 5 views
0

私はサーバーからの応答に問題があります(私は思う)。はGAS withSuccessHandlerの点で問題になることがありますか?

google.script.run.withSuccessHandler(theFunc).findInRow(query, sheetName); 

function tehFunc(e) { 
    console.log('here'); 
    var val; 
    $.each(e, function(i, item) { 
     val = val+item.el1 + ' - ' + item.el2; 
    }) 
    } 

エラー:

Uncaught TypeError: a is not a function

コンソールだけでは表示されません。

サーバー側:

findInRow機能が

Logger.log([[{el1=3.0, el2=0.79}], []]) 

答えて

3

以下のようにLogger.logにデータを返すあなたのコード例では、tehFunctheFuncのつづりを逃しています。 theFuncは、あなたの例では宣言された関数ではありません。

関連する問題