worklight 5.0.6 JsonRestStore, use of Promises
问题 This was originally a question about the Worklight documentation, it transpires that my real question is about JQuery's Deferred/Promise API and the promise.then() function. Context: The documentation for the 5.0.6 JsonRestStore API gives examples of using the new Promise capability offering two possible formulations. someFunction.then( successCallback, errorCallback, optionalProgressCallback); And someFunction().then(successCallback).fail(errorCallback) These two approaches seem, as comments