|
本帖最后由 JSSY 于 2016-9-20 12:27 编辑
长度是取到了,而值在浏览器中能取到,手机则不行!
this.ptDB = ptDB.getInstance();
var db = this.ptDB.getDatabase(); var sqls = "SELECT PHOTOID,PHOTOCODE FROM PHOTEMANAGE where ORDERNO ='"+UPLOADID+"';"
SqliteUtil.executeSql(db, sqls,null, onSuccess, onError);
function onSuccess(res) {
alert('length= '+res.rows.length);
alert('PHOTOID= '+res.rows[0].PHOTOID);
alert('PHOTOCODE= '+res.rows[1].PHOTOCODE);
}
function onError(msg) {
alert("onSuccess1参数出错");
}
|
|