摘要: 购物车 商品名称 商品单价 商品数量 总价 iphone 6s 1.10 5 ... 阅读全文
posted @ 2017-09-05 19:45 Harry- 阅读(4418) 评论(0) 推荐(0) 编辑
摘要: //读取文件夹下的文件并删除//简单的查看文件夹下的文件 public function read(){ $dir="data/"; $file=scandir($dir); //array_splice($file,2,1); if(count($file)>17){ unlink($dir.$fi... 阅读全文
posted @ 2017-09-05 19:38 Harry- 阅读(191) 评论(0) 推荐(0) 编辑
摘要: <img src="图片地址" onerror="this.src='默认图片地址'" /> 阅读全文
posted @ 2017-09-05 19:34 Harry- 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 一、数组操作的基本函数数组的键名和值array_values($arr);获得数组的值array_keys($arr);获得数组的键名array_flip($arr);数组中的值与键名互换(如果有重复前面的会被后面的覆盖)in_array("apple",$arr);在数组中检索applearray 阅读全文
posted @ 2017-09-05 19:31 Harry- 阅读(194) 评论(0) 推荐(0) 编辑
摘要: .pagination{text-align:center;margin-top:20px;margin-bottom: 20px;} .pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: 阅读全文
posted @ 2017-08-25 12:43 Harry- 阅读(350) 评论(0) 推荐(0) 编辑
摘要: function checkNum(obj) { //检查是否是非数字值 if (isNaN(obj.value)) { obj.value = ""; } if (obj != null) { //检查小数点后是否对于两位 if (obj.value.toString().split(".").len... 阅读全文
posted @ 2017-08-18 12:09 Harry- 阅读(789) 评论(0) 推荐(0) 编辑
摘要: //数据库备份 public function exportDatabase(){ //备份数据库 $host="localhost"; $user="root";//数据库账号 $password="root";//数据库密码 $dbname="article";//数据库名称//这里的账号、密码 阅读全文
posted @ 2017-08-17 10:54 Harry- 阅读(1083) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 layer-更懂你的web弹窗解决方案 7 8 9 10 11 12 13 211 212 hello,i'm layer! 213 初体验 214 皮肤 215 询问框 216 提示层 217 蓝色风格 2... 阅读全文
posted @ 2017-08-17 10:50 Harry- 阅读(279) 评论(1) 推荐(0) 编辑
摘要: 在h-ui中遇到这问题,改半天都改不过来,主要是因为不参与排序的列这一栏的数字是指列“td”的下标,可能是你的表格超出了这个范围 阅读全文
posted @ 2017-08-09 21:29 Harry- 阅读(6058) 评论(0) 推荐(0) 编辑
摘要: html代码如上 js代码如上 阅读全文
posted @ 2017-08-09 21:07 Harry- 阅读(4441) 评论(0) 推荐(0) 编辑