2017年9月22日
摘要: function test(s) { if (!/^\d{6}$/.test(s)) return false; // 不是6位数字 if (/^(\d)\1+$/.test(s)) return false; // 全一样 var str = s.replace(/\d/g, function($ 阅读全文
posted @ 2017-09-22 09:35 allenzhou 阅读(355) 评论(0) 推荐(0) 编辑
  2016年11月28日
摘要: function base64_upload($base64) { $base64_image = str_replace(' ', '+', $base64); //post的数据里面,加号会被替换为空格,需要重新替换回来,如果不是post的数据,则注释掉这一行 if (preg_match('/ 阅读全文
posted @ 2016-11-28 22:34 allenzhou 阅读(2131) 评论(0) 推荐(0) 编辑
  2016年11月26日
摘要: <!doctype html><html> <head> <meta charset="UTF-8"> <title>后台管理</title> <style type="text/css"> * { margin: 0; padding: 0; } body { font: 14px/1.5 '微软 阅读全文
posted @ 2016-11-26 09:49 allenzhou 阅读(332) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset=utf-8 " > <title></title> </head> <body> <div id="app"> <mytitle></mytitle> <div id="divTblBook "> <table c 阅读全文
posted @ 2016-11-26 09:48 allenzhou 阅读(106) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name=" 阅读全文
posted @ 2016-11-26 09:47 allenzhou 阅读(848) 评论(0) 推荐(0) 编辑
  2016年11月25日
摘要: <!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name=" 阅读全文
posted @ 2016-11-25 09:59 allenzhou 阅读(658) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name=" 阅读全文
posted @ 2016-11-25 09:58 allenzhou 阅读(397) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name=" 阅读全文
posted @ 2016-11-25 09:55 allenzhou 阅读(702) 评论(0) 推荐(0) 编辑
摘要: <!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name=" 阅读全文
posted @ 2016-11-25 09:53 allenzhou 阅读(1850) 评论(0) 推荐(0) 编辑
  2016年11月20日
摘要: ​/** * 发红包函数实现 * @param float $total 红包金额 * @param int $num 红包个数 * @return 返回数组 */function luckymoney($total,$num){ $min=0.01;//每个人最少能收到0.01元 $arr[]=a 阅读全文
posted @ 2016-11-20 11:35 allenzhou 阅读(121) 评论(0) 推荐(0) 编辑