0

Webサーバーを使用してJSONオブジェクトをEnyoに渡そうとしています。Enyoのサービスからロードされているファイル:

{ "Comments" : ["NewComment 1", "NewComment 2", "NewComment 3"  ]}

次のサービスのコールバックは、次のようなエラーを生成します

gotComments: function(inSender, inResponse) {
    this.serverReply = InResponse; // error  uncaught reference error: inResponse not defined
     this.$.list.render();
},

ChromeデバッガーでinReplyをクリックすると、

Object:
Comments: Array[3]

ウォッチウィンドウに次のように表示されている場合、定義されていないことをどのように言うことができますか

Object:
Comments: Array[3]
4

1 に答える 1

2

質問のコードはInResponse(大文字I)とinResponse(小文字i)を組み合わせたものです。これが実際のコードのように見えると仮定して、変更します

this.serverReply = InResponse;

this.serverReply = inResponse;
于 2012-01-04T20:19:51.203 に答える