07 2019 档案

摘要:网络上搜集的一些有用的commonjs函数。/** 获得中文-英文字符串长度 */ function getStrLens(str){ return str.replace(/[^\x00-\xff]/g,"**").length; } /** 数字验证 */ function numberCheck(value){ var value = $.trim(value); ... 阅读全文
posted @ 2019-07-29 11:44 china/xin 阅读(401) 评论(0) 推荐(0)
摘要:在tp中构建多表查询的sql结构。还不能破坏搜索条件处理器。 需求,查出用户表与用户统计信息表中的复合数据。并按照规则排序。 // SELECT * FROM zfenxiao_user user INNER JOIN zfenxiao_totalsinfos dept ON dept.userid 阅读全文
posted @ 2019-07-25 11:06 china/xin 阅读(2412) 评论(0) 推荐(0)
摘要:thinkphp5.1 中 wheretime() 方法使用 $todaytime=date('Y-m-d H:i:s',strtotime(date("Y-m-d"),time()));//今天零点 $oldtoday=date('Y-m-d H:i:s',strtotime($todaytime)-86400);//昨日零点 //今日粉丝数量 $fans[fans1]=Db::name(... 阅读全文
posted @ 2019-07-25 09:51 china/xin
摘要:win10系统下,phpstudy开发环境下小问题描述: 找不到public公共模块。 Not Found The requested URL /public/admin/login.html was not found on this server. 原因分析: 找不到模块的原因是 win10系统 阅读全文
posted @ 2019-07-13 14:25 china/xin 阅读(1757) 评论(0) 推荐(0)