async function getItem(id){
let rd = new Promise((resolve, reject) => {
let obj = this.db.transaction(['ord'],"readwrite").objectStore('ord');
let res = obj.get(id);
res.onsuccess = function(){
console.log(this.result); //good
resolve(this.result)
};
});
return rd;
}
const res = await getItem(id);
console.log(res);