Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーにしたいお店がありsync()ます。
sync()
Store.sync()メソッドにはsuccessとfailureプロパティ関数がExt.data.Batchありoptions、パラメーターとして と があります。
Store.sync()
success
failure
Ext.data.Batch
options
サーバーからそのような応答を受け取った場合:
{ success: false, msg: "test error!" }
failureメソッドが呼び出します。
メソッド内から応答msgプロパティにアクセスするにはfailure?
msg
store.sync({ failure: function(batch, options) { alert(batch.proxy.getReader().jsonData.msg); } });