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)

导航