第一條 SQL 語(yǔ)句創(chuàng)建了名為“foo”的表,第二條 SQL 語(yǔ)句向表中插入一條記錄。示例代碼: 復(fù)制代碼 代碼如下: var db = openDatabase('fooDB', '1.0', 'fooDB', 2 * 1024); db.transaction(function (tx) { tx.executeSql('CREATE TABLE IF NOT EXISTS foo (id unique, text)'); tx.executeSql(...
www.dbjr.com.cn/html5/1153...html 2025-5-26