摘要: thinkphp where 不能为空表达:$ip['token'] = array('exp','is not null'); thinkphp 获取ip $ip = get_client_ip(); if (/^1\d{10}$/.test(phone)) js判断手机格式 visibility 阅读全文
posted @ 2015-11-11 15:21 rickon 阅读(167) 评论(0) 推荐(0) 编辑
摘要: /* 时间戳转日期 */function getLocalTime(nS) { return new Date(parseInt(nS) * 1000).toLocaleString().substr(0,10); } /* 获取当前月份 */functi... 阅读全文
posted @ 2015-11-11 15:01 rickon 阅读(364) 评论(0) 推荐(0) 编辑
摘要: /* 读取cookie */ function getCookie(name){ var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return ... 阅读全文
posted @ 2015-11-11 14:57 rickon 阅读(285) 评论(0) 推荐(0) 编辑