javascript中10常用的个小技巧总结 本文转自:http://www.cnblogs.com/libin-1/p/6756393.html 1. new Set() 可能有人知道ES6中提供了新的数据结构 Set,但是能够灵活运用的人或许不多。利用Set数据结构我们能够轻松的去重一个数组,比 ...
分类:
编程语言 时间:
2017-09-14 00:38:27
阅读次数:
270
var EventUtil = { addHandler:function(elem,type,handler){ if(elem.addEventListener){ elem.addEventListener(type,handler,false); } else if(elem.attachE... ...
分类:
Web程序 时间:
2017-09-13 23:29:12
阅读次数:
410
python的string对象没有contains方法,不可以使用string.contains的方法判断是否包含子字符串,但是python有更简单的方法来替换contains函数 python的string对象没有contains方法,不可以使用string.contains的方法判断是否包含子字 ...
分类:
编程语言 时间:
2017-09-13 22:10:56
阅读次数:
201
inline bool scan_d(int &num) { char in;bool IsN=false; in=getchar(); if(in==EOF) return false; while(in!='-'&&(in'9')) in=getchar(); if(in=='-'){ IsN=... ...
分类:
其他好文 时间:
2017-09-13 21:25:08
阅读次数:
126
一年之后又重新学习此算法。。。233。。。 ...
分类:
其他好文 时间:
2017-09-13 21:12:20
阅读次数:
163
文件状态测试 举例: if [ -b /dev/hda ] ;then echo "yes" ;else echo "no";fi // 将打印 yes test -c /dev/hda ; echo $? // 将打印 1 表示test 命令的返回值为1,/dev/hda 不是字符设备 [ -w ...
分类:
系统相关 时间:
2017-09-13 21:11:48
阅读次数:
355
前面的话 Vue 的过渡系统提供了非常多简单的方法设置进入、离开和列表的动效。那么对于数据元素本身的动效呢?包括数字和运算、颜色的显示、SVG 节点的位置、元素的大小和其他的属性等。所有的原始数字都被事先存储起来,可以直接转换到数字。做到这一步,我们就可以结合 Vue 的响应式和组件系统,使用第三方 ...
分类:
其他好文 时间:
2017-09-13 20:24:44
阅读次数:
231
select * from order_user; 条件语句casecase when age<=10 then '儿童' when age>10 and age <=18 then '儿童' when age<=10 then '儿童' when age<=10 then '儿童' else '老 ...
分类:
数据库 时间:
2017-09-13 20:19:17
阅读次数:
179
转自 http://kb.cnblogs.com/page/575829/ 作为一个程序员,我经常会问自己一个问题: 优秀的程序员都具备哪些特质? 我总结过很多特质,例如: 经过一段时间的观察,我发现这上面的所有特质,都可以由一种行为习惯衍生出来,也就是如果你有以下习惯,那么你可能拥有且不限于以上所 ...
分类:
其他好文 时间:
2017-09-13 19:28:22
阅读次数:
225
Given a table salary, such as the one below, that has m=male and f=female values. Swap all f and m values (i.e., change all f values to m and vice ver ...
分类:
其他好文 时间:
2017-09-13 19:19:45
阅读次数:
162