上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页

2018年11月5日

round 函数

摘要: 阅读全文

posted @ 2018-11-05 14:22 刷哥 阅读(162) 评论(0) 推荐(0)

2018年11月2日

array_map

摘要: 阅读全文

posted @ 2018-11-02 16:57 刷哥 阅读(215) 评论(0) 推荐(0)

数据库count用法

摘要: 1.查询表有多少条记录select count(*) from table;2.查询表中符合条件的记录数select count(*) from table where id > 100;3.查询每个分组的记录数select name, count(*) as count from table gr 阅读全文

posted @ 2018-11-02 11:19 刷哥 阅读(10043) 评论(0) 推荐(0)

$(document).ready(function(){}), $().ready(function(){}) 和 $(function(){}) 三个区别

摘要: 三者都是一样的,最完整的写法是:$(document).ready(function(){})ready() 函数仅能用于当前文档,因此无需选择器。所以document选择器可以不要,那么就可以写成:$().ready(function(){})最后$的默认事件就是ready,所以,ready也可以 阅读全文

posted @ 2018-11-02 11:15 刷哥 阅读(300) 评论(0) 推荐(0)

JQuery this和$(this)的区别及获取$(this)子元素对象的方法

摘要: // this其实是一个Html 元素。 // $this 只是个变量名,加$是为说明其是个jquery对象。 // 而$(this)是个转换,将this表示的dom对象转为jquery对象,这样就可以使用jquery提供的方法操作。 阅读全文

posted @ 2018-11-02 11:08 刷哥 阅读(205) 评论(0) 推荐(0)

下拉框选中的事件

摘要: $(document).on('change','#citys_id',function () { var id = $('#citys_id').val(); // 城市ID var country_id = $('#quanpost-country_id').val(); var _this = 阅读全文

posted @ 2018-11-02 10:59 刷哥 阅读(985) 评论(0) 推荐(0)

2018年11月1日

usort() 自定义排序

摘要: usort (PHP 4, PHP 5) usort — 使用用户自定义的比较函数对数组中的值进行排序 说明 bool usort ( array &$array , callback $cmp_function ) 本函数将用用户自定义的比较函数对一个数组中的值进行排序。如果要排序的数组需要用一种 阅读全文

posted @ 2018-11-01 14:01 刷哥 阅读(573) 评论(0) 推荐(0)

2018年10月30日

php 表单 email, URL 正则表达式

摘要: 阅读全文

posted @ 2018-10-30 16:42 刷哥 阅读(351) 评论(0) 推荐(0)

php list() 函数用法

摘要: 阅读全文

posted @ 2018-10-30 16:38 刷哥 阅读(262) 评论(0) 推荐(0)

PHP 选取数组中最大的 键 和 值

摘要: $max = array('o' => 1, 'x' => 2, 'z' => 4, '9' => 7, 'e' => -2);asort($max); // asort() - 根据值,以升序对关联数组进行排序list($key,$value) = array(array_keys($max,en 阅读全文

posted @ 2018-10-30 16:21 刷哥 阅读(5622) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页

导航