摘要: 连接数据库 <?php //var_dump($_GET); //准备dsn $dsn = 'mysql:host=localhost;dbname=数据库名;charset=utf8'; //连接数据库 try { $pdo = new PDO($dsn,'root',''); } catch ( 阅读全文
posted @ 2018-08-21 20:17 华诺 阅读(243) 评论(0) 推荐(0)
摘要: 思路 1.给tbody一个id=”shopList” 当进入购物车时如果有两个商品被勾选了,需要计算出总价钱 2.当手动勾选商品时,也要把相应的价格加到总价中去 3.给全选添加一个id=”checkAll”当勾选全部选中时,要计算所有商品的总价要注意的是:这个函数,当单选是也要触发,因为当全部商品都 阅读全文
posted @ 2018-08-21 20:16 华诺 阅读(203) 评论(0) 推荐(0)
摘要: <!DOCTYPE html > <html> <head> <meta charset="UTF-8"> <title>Document</title> <style> *{margin:0px;padding:0px;} #small{width:400px;height:300px;borde 阅读全文
posted @ 2018-08-21 20:10 华诺 阅读(116) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> *{margin:0px;padding:0px;} #left{position:fixed;left:60 阅读全文
posted @ 2018-08-21 20:08 华诺 阅读(192) 评论(0) 推荐(0)