SPlus.List.getItems (url, viewName, fields, function (items){
for (var i=0; i < items.length; i++) {//Loop the items Array
var item = items [i];//Getting a JSON object with the requested fields
var title = item['ows_Title#displayValue']; //Getting one of the fields previously specified for each item
//TODO: Implement what to do with each item
}
}, function (errorResponse){
var error = errorResponse['error#displayValue']; //Getting the error
//TODO: Implement how to handle errors
}, function (cancelResponse){
//TODO: Implement how to handle a user’s cancel
});