Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:
其他好文 时间:
2014-08-14 10:27:38
阅读次数:
181
1 text-overflow: -o-ellipsis-lastline;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical...
分类:
Web程序 时间:
2014-08-13 21:52:17
阅读次数:
231
使用ctrl+r后输入字母可以调用以前输入过的命令例如:$同时按下ctrl+r后界面显示(reverse-i-search)`‘:grep就可以调用之前使用过的grep命令\aAlert警报会发出铃声\bBackspace.退格\eEscape.字符转换\fFormfeed.换页\nNewline.换行\rCarriagereturn.回车\tHorizontaltab.\vVerti..
分类:
系统相关 时间:
2014-08-13 15:13:07
阅读次数:
278
这段代码是在新浪网站上找到的。先放出CSS代码:.focus a.arrow,.card_con4 li i,.cm1_menu_wrap a.cm1_menu_box,.cm1_img span,.cm1_item1 a{ background: url(http://www.sinaimg.cn...
分类:
Web程序 时间:
2014-08-13 14:46:56
阅读次数:
301
1.递归算法a.function box(num){if(num<=1){ return 1;}else{ return num*box(num-1);}}alert(box(5));b.函数内部调用它本身 ,可以用arguments.callee替代它函数名box;这样可以一旦改变其名字,里边的就...
分类:
Web程序 时间:
2014-08-13 14:41:16
阅读次数:
212
css3新增的background-clip属性主要是对背景图片进行裁切的作用:background-clip:border-box || padding-box || context-box分别对边框,内边距,内容区域进行裁切,把多余的部分给裁切掉,有兼容性问题.拿w3cplus的文章代码过来:/...
分类:
Web程序 时间:
2014-08-13 12:53:46
阅读次数:
203
userInfo页面Modify逻辑bug修复,search功能逻辑实现...
分类:
其他好文 时间:
2014-08-12 22:04:04
阅读次数:
362
1 $("div") //标签 2 $(".box") //类 3 $("#box") //ID 4 $("a[href][name]") //多个属性 5 ...
分类:
其他好文 时间:
2014-08-12 18:49:04
阅读次数:
202
$('.F_box_2').hover( function(){ $(this).find(".make_reply").css({"color":"#c00","text-decoration":"underline","background-position":"12px -147px"}); ...
分类:
其他好文 时间:
2014-08-12 18:29:54
阅读次数:
189