判断复选框哪一个被点击 <!DOCTYPE html> <html> <head> <script src="/jquery/jquery-1.11.1.min.js"> </script> <script> $(document).ready(function(){ $("button").cli ...
分类:
其他好文 时间:
2016-08-26 01:17:25
阅读次数:
140
提取二维数组相同的键和键对应的值组成一个新的一维数组, tp不支持此函数,所以自己在php中找到,写在了tp的function下//array_column — 返回数组中指定的一列 function arrayColumn(array $array, $column_key, $index_key ...
分类:
编程语言 时间:
2016-08-26 01:11:14
阅读次数:
227
//全选,取消全选 $(document).on("click","#selection",function(){ if($(this).hasClass("selected")==false){ $(this).closest(".tablesWrap").find("input[type=che ...
分类:
Web程序 时间:
2016-08-26 01:09:50
阅读次数:
165
(1)定义函数模板(function template) 函数模板是一个独立于类型的函数,可以产生函数的特定类型版本。 // implement strcmp-like generic compare function template <typename T> int compare(const ...
分类:
编程语言 时间:
2016-08-25 23:55:19
阅读次数:
157
Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) c ...
分类:
其他好文 时间:
2016-08-25 23:48:23
阅读次数:
163
修改后台评论模型 创建search方法 //取出一件商品的评论 public function search($goodsId,$pageSize=5) { //要做ajax翻页 所以要自己写 $where['a.goods_id']=array('eq',$goodsId); //取出总的记录数 ...
分类:
Web程序 时间:
2016-08-25 23:43:15
阅读次数:
284
1.什么是BIF BIF为内置函数,英语全称为Build-in-Function 3.关于"FishC"与"fishC"有区别吗 有区别的,他是两个不同的字符串 4.=与==的区别 = 在python中代表赋值,即给变量赋值。==代表等于 5 拼接的意思? 拼接在python中可以简单理解为两个同种 ...
分类:
编程语言 时间:
2016-08-25 23:40:33
阅读次数:
180
1.流程图的使用。 在写程序的初期,可以试着先写流程图,搞清逻辑顺序、实现功能、判断条件等 2.内置函数 BIF == built-in-Function,查询python中的内置函数,可以使用代码: 3.对于不清楚的函数,可以通过help(函数)了解函数的功能。 4.课堂里的游戏源代码: ...
分类:
编程语言 时间:
2016-08-25 23:30:05
阅读次数:
184
nodejs自学.js function hello(){ console.log("hello world");} function s(){ console.log("this is a ew");} function add(a, b){ return a+b;} exports.hello ...
分类:
Web程序 时间:
2016-08-25 20:56:24
阅读次数:
137
在javascript中,不需要明确指出参数名,就能访问它们。如:function hi(){if(arguments[0]=="andy"){ return;}alert(arguments[0]);}用arguments[0]可以访问第一个参数,如此类推。利用arguments对象可以实现重载, ...
分类:
Web程序 时间:
2016-08-25 20:22:10
阅读次数:
207