上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页

2022年9月9日

ThinkPHP $this->error 关闭页面

摘要: $this->closeWin=1; $this->error('用户名或密码错误'); 阅读全文

posted @ 2022-09-09 11:36 小馬過河﹎ 阅读(25) 评论(0) 推荐(0)

PHP截取指定两个字符之间字符串

摘要: function get_between($input,$start,$end){ return substr($input,strlen($start)+strpos($input,$start),(strlen($input)-strpos($input,$end))*(-1)); } 阅读全文

posted @ 2022-09-09 11:35 小馬過河﹎ 阅读(421) 评论(0) 推荐(0)

CSS下拉菜单

摘要: <ul class="nav"> <li><a href="/">首页</a></li> <li class="drop-down"> <a href="javascript:;">出售房源</a> <ul class="drop-down-content"> <li><a href="/Sell" 阅读全文

posted @ 2022-09-09 11:34 小馬過河﹎ 阅读(23) 评论(0) 推荐(0)

PHP ip2long() 出现负数的解决方法

摘要: function ip_long($ip=0){ return sprintf('%u',ip2long($ip)); } 阅读全文

posted @ 2022-09-09 11:32 小馬過河﹎ 阅读(26) 评论(0) 推荐(0)

javascript 把日期字符串替换成数字串

摘要: datetimeStr.replace(/ |:|-/g,'') 阅读全文

posted @ 2022-09-09 11:30 小馬過河﹎ 阅读(41) 评论(0) 推荐(0)

php将textarea内容根据换行转换数组

摘要: $arr=explode("\r\n",I('textarea')); 阅读全文

posted @ 2022-09-09 11:30 小馬過河﹎ 阅读(278) 评论(0) 推荐(0)

javascript|es6|计算字符串长度的方法

摘要: 这种方法的好处在于:可以正确处理各种Unicode字符,不会将大于\uFFFF的Unicode字符算作2个字符。 //第一种:使用扩展运算符 [...str].length //第二种:使用Array.form()方法 Array.from(str).length 阅读全文

posted @ 2022-09-09 11:28 小馬過河﹎ 阅读(136) 评论(0) 推荐(0)

生日转年龄

摘要: function birthday2age($birthday='1949-10-01'){ list($year,$month,$day)=explode('-',$birthday); $year_diff=date('Y')-$year; $month_diff=date('m')-$mont 阅读全文

posted @ 2022-09-09 11:23 小馬過河﹎ 阅读(32) 评论(0) 推荐(0)

以逗号分隔的字符串是否交集

摘要: delimiter $$ use `tzjob`$$ drop function if exists `is_mixed`$$ create definer=`root`@`localhost` function `is_mixed`(str1 text,str2 text) returns tin 阅读全文

posted @ 2022-09-09 11:12 小馬過河﹎ 阅读(29) 评论(0) 推荐(0)

php函数返回当前季度

摘要: function current_quarter(){ return ceil((date('n'))/3); } 阅读全文

posted @ 2022-09-09 11:10 小馬過河﹎ 阅读(39) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页

导航