测试用例&测试套件举个栗子:编写MyStack类模拟栈,并对其进行测试用例编写测试; 编写文件删除方法,并对其删除测试。 不再做演示,戳此获取代码 MyStack类:public class MyStatck { private String[] elements; private int next...
分类:
其他好文 时间:
2015-09-20 13:05:49
阅读次数:
274
题目:Givennnon-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...
分类:
移动开发 时间:
2015-09-19 16:37:50
阅读次数:
120
7.多媒体 ①滚动字幕 滚动的内容... ②属性:align-----对齐方式(top middle bottom) scroll-----单向运动 alternate-----左右往返运动 slide-----如幻灯片,一格格的,如果是文字一接触左边就停止 ...
分类:
Web程序 时间:
2015-09-19 13:53:28
阅读次数:
201
一、滚动字幕标签的用法:【举例如下】:想左边跑动!向上滚动!我要慢慢的走!属性:1、direction属性:指的是滚动的方向(分别指的是:left向左、right向右、up向上、down向下). 2、behavior属性: alternate:表示文字来回滚动、scroll:单方向循环滚动、sli....
分类:
Web程序 时间:
2015-09-19 13:47:41
阅读次数:
219
public int getStatusBarHeight() { int result = 0; int resourceId = mainActionView.getContext().getResources().getIdentifier("status_bar...
分类:
移动开发 时间:
2015-09-18 18:20:25
阅读次数:
172
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-09-18 00:42:25
阅读次数:
234
分享一个Sql技巧,把xml字符串转换成一个表格1 1 DECLARE @IdHandel INT 2 2 EXEC sp_xml_preparedocument @IdHandel OUTPUT, @Bar_Ip 3 3 4 4 INSERT INTO T_Bar_Ip_Info(Bar_id,I...
分类:
数据库 时间:
2015-09-17 19:35:55
阅读次数:
269
1》全局控制//向上滑动显示 var initTop = 0; var i = 1; $(window).scroll(function(){ var scrollTop = $(document).scrollTop(); ...
分类:
Web程序 时间:
2015-09-17 14:58:01
阅读次数:
155
1. 样式StatusBar有两种样式:UIStatusBarStyleDefault : UIStatusBarStyleLightContent 改变状态栏文字颜色方法:1)直接设置storyboard的controller设置:2)代码设置,在UIViewCon...
分类:
其他好文 时间:
2015-09-17 13:36:20
阅读次数:
226
测试用例 单元测试时每个开发人员必需掌握的,是保证开发过程中代码的准确性,无误性,保证代码质量。敏捷开发模式是先根据用户需求写测试用例,考虑基本所有用户所需要的情况,再写实现方法。单元测试有很多种,当前主流的是Junit,它是java领域测试中应用最多的开源框架 Junit版本 Junit3.8基于...
分类:
其他好文 时间:
2015-09-17 00:51:41
阅读次数:
310