<!-- 三个核心方法 openDatabase:这个方法使用现有数据库或创建新的数据库 transaction:这个方法允许我们根据情况控制事务提交或者回滚 executeSql:执行sql查询 应用:离线词典 --> <script> //检测浏览器是否支持websql if(window.openDatabase){ //创建或者使用数据库 var conn=openDatabase('think-shop','1.0',1024*1024,function(){}); //控制事务控制提交或者回滚 conn.transaction(function(fx){ /* //1.执行sql,创建表结构 fx.executeSql( "create table member(id int,name varchar)", [], function(){ //成功自动执行 console.log('创建成功!'); }, function(){ //失败
离线缓存的开启实例使用apache设置 1.apache配置文件搜索Addtype,我的addtype已经存在项目,如下 AddType application/x-compress .Z AddType application/x-gz...
<form action="save.php" method="post" target="nm_iframe"> &nbs...
https://3gimg.qq.com/lightmap/v1/marker/index.html?marker=coord:37.6767600000,112.7297800000&key=TKUBZ-D24AF-GJ4JY-JDVM2-IBYKK-KEBCU&referer=p...
开发需求如下,商品下单后需要指定送到日期:送达日期为周一 周三 周六 ,如果今天周一,用户选择周一即为下一周周一。代码如下:<html> <head> <meta charset="utf-8"> <title>...
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> </head> ...