「レコードが見つかりません」という応答に対するJSON応答を次に示します。「エラーメッセージ」または「応答」を確認しようとすると、適切に機能していません。
{
"showItems" :
[
{
"errorMsg" : "NoRecordsFound",
"response" : "failed"
}
]
}
コンディションチェック
success: function (response)
{
var respObj = Ext.JSON.decode(response.responseText);
alert(respObj[0].response);//here it does not retutning anyting
if(respObj[0].response=="Success")
{
Ext.getCmp('itemList').setData(respObj.showItems);
}
if(respObj[0].response=="failed")
{
Ext.Msg.alert("Alert!","No records found!");
}
}
状態を確認するにはどうすればよいですか?これを解決するのを手伝ってください