私はこのコードを実行すると、特定のユーザーからの場所を取得したいと思います。 'Uncaught TypeError:プロパティ' location 'が未定義です。 と私は修正できません。 これはコードです:sqliteデータベースから結果を取得する
db.transaction(function(tx){
tx.executeSql("SELECT location FROM users WHERE username='"+username+"'",[], success);
});
function success(tx,results){
var city = results.rows.item[0].location;
}
サンプルコードを[最小限で完全で検証可能な例](https://stackoverflow.com/help/mcve)にしてください。 – bignose