listmemo.js 340 B

1234567891011121314
  1. function main(){
  2. newDBTableIfNotExists("Memo");
  3. var entries = listDBTable("Memo");
  4. var thisUserMemo = {};
  5. for (var key in entries) {
  6. if (key.indexOf(USERNAME + "/") >= 0){
  7. thisUserMemo[key.replace(USERNAME+"/", "")] = entries[key];
  8. }
  9. }
  10. sendJSONResp(JSON.stringify(thisUserMemo));
  11. }
  12. main();