Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:
其他好文 时间:
2015-02-09 15:47:14
阅读次数:
174
//左右轨的图片 UIImage *stetchLeftTrack= [UIImage imageNamed:@"brightness_bar.png"]; UIImage *stetchRightTrack = [UIImage imageNamed:@"brightness_bar....
分类:
移动开发 时间:
2015-02-09 14:02:56
阅读次数:
126
一、$scope.$broadcast('scroll.infiniteScrollComplete');↓↓$scope.$apply(function(){ $scope.$broadcast('scroll.infiniteScrollComplete'); });二、报错$digest al...
分类:
其他好文 时间:
2015-02-09 12:36:35
阅读次数:
2682
题目链接:Trapping Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given ...
分类:
移动开发 时间:
2015-02-09 00:48:49
阅读次数:
207
固定显示: $(window).scroll(function(){ ??????????? rightScroll(); ??????? }); ??????? function rightScroll(){ ??????????? var wH = $(window).height(), ?????...
分类:
其他好文 时间:
2015-02-08 23:30:05
阅读次数:
351
UIScrollView原理(http://blog.sina.com.cn/s/blog_85c1f6a50100xihg.html)在滚动过程当中,其实是在修改原点坐标当手指触摸后, scroll view会暂时拦截触摸事件,使用一个计时器,假如在计时器到点后,没有发生手指移动事件,那么,scr...
分类:
其他好文 时间:
2015-02-08 15:16:56
阅读次数:
131
在navigation bar中是没有设置它的隐藏和显示的属性的那么究竟在什么地方呢,当在它自身的属性中没有找到的情况下,那么就只能去包含它的容器中去寻找了,结果果然找到了.在view的第四个选择器的Simulate Metric中会看到Top的属性,将inferred的值改为none便可以了,如下...
分类:
其他好文 时间:
2015-02-08 10:20:34
阅读次数:
307
最近看到一道前端面试题:请优化selector写法:$(".foo div#bar:eq(0)")我给出的答案会是:1. $("#bar")2. $("div#bar")下面说说我为什么会给出两种答案1. 因为页面要求ID是唯一的2. 因为jQuery的选择器引擎用的是Sizzle,而$("div#...
分类:
Web程序 时间:
2015-02-07 21:34:58
阅读次数:
140
题目要求:Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able ...
分类:
移动开发 时间:
2015-02-07 21:33:12
阅读次数:
145
本文介绍了通过css+js来控制table的x,y方向上的滚动。然后详细分析了使用table时,可能出现的width宽度与预期设定不一致的情况,最后给出了解决方案...
分类:
Web程序 时间:
2015-02-07 20:23:59
阅读次数:
222