SPlus.List.getItemsWithOptions (listUrl, options, function (items) {
//Loop the items Array
for (var i=0; i < items.length; i++) {
//Getting a JSON object with the requested fields (item)
var item = items[i];
//Getting the fields for an item
var title = item['ows_Title#displayValue'];
var body = item['ows_Body#displayValue'];
var created = item['ows_Created#displayValue'];
// TODO: Display the items somewhere
}
}, function (errorResponse) {
SPlus.Utility.showMessage('Get Items Error',errorResponse['error#displayValue']);
//TODO: Implement how to handle errors
}, function (cancelResponse) {
//TODO: Implement how to handle a user’s cancel
});