猿问

HTML5一个后台数据库小问题

//删除某一个评论

function dropTable(){

    var tableName = window.prompt("请输入要删除的评论昵称:","");

    db.transaction(function(tx){

        tx.executeSql("delete from MsgData where name="+tableName+"",[],function(tx,rs){

            window.alert("评论删除成功!");

        },function(tx,error){

            window.alert(error.source+"::"+error.message);

        });

    })

}


executesql里面应该怎么写才能实现这个操作。。。我现在的写法会报错

柠檬草cc
浏览 938回答 1
1回答

Gotta

这是什么骚操作 
随时随地看视频慕课网APP
我要回答