Returning array from javascript class method to a script
问题 I'm building a javascript application using object oriented techniques and I'm running into a problem that I hope someone here can help me resolve. The following method is designed to return an array populated with rows of data from a web SQL database: retrieveAllStoreSearches : function(){ this.db.transaction( function(transaction){ transaction.executeSql( "SELECT name,store,address FROM searchResults ORDER BY name ASC", [], function(transaction, results){ var returnArr = []; for(var i = 0;