在自动化测试的过程中,经常会出现这样的场景:按住Ctrl的同时,进行单击操作,已达到多选的目的Actions a = new Actions(driver);a.keyDown(Keys.CONTROL).perform();for(int i = 0;i<quantity;i++){ W...
分类:
其他好文 时间:
2014-07-09 21:33:36
阅读次数:
305
Output Control 函数可以让你自由控制脚本中数据的输出。它非常地有用,特别是对于:当你想在数据已经输出后,再输出文件头的情况。输出控制函数不对使用 header() 或 setcookie(), 发送的文件头信息产生影响,只对那些类似于 echo() 和 PHP 代码的数据块有作用。我们...
分类:
Web程序 时间:
2014-07-09 17:45:21
阅读次数:
272
apache:方法1: Header set Access-Control-Allow-Origin "*" 方法2:在字体目录下写一个.htaccessHeader set Access-Control-Allow-Origin "*"nginx:location ~*...
分类:
其他好文 时间:
2014-07-09 17:24:19
阅读次数:
231
一个需求: 在域控范围获得访问用户的计算机名.方法:1.测试软件环境: XAMPP Control Panel V3.2.1 , Apache version 2.4.72.Apache 2.2 使用 mod_auth_sspi.so 模块,Apache 2.4 以后此模块不再适用,使用mod_au...
分类:
Web程序 时间:
2014-07-09 16:44:22
阅读次数:
881
ContentPropertyAttribute 是使用在类的声明上的特性,表示xmal标签内容对应的clr类中的属性,目前发现Control的子类下有这几种属性:1.Content。这个是最常见的啦。ContentControl、Page 2.Items。ItemsControl 3.Do...
分类:
其他好文 时间:
2014-07-08 23:29:52
阅读次数:
224
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is, for each i (2...
分类:
其他好文 时间:
2014-07-08 17:54:12
阅读次数:
297
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input st...
分类:
其他好文 时间:
2014-07-08 16:57:40
阅读次数:
193
Modal模式是指模态切换,新开的界面会挡住之前的界面,使之不能获取焦点。
创建一个singleView模板的程序,打开storyboard文件,拖动2个UIViewController到界面中,按住control,从按钮处直接拖动到第2个vc如图:
然后放开,选择modal模式: 意思就是只要点击按钮 就能从下到上弹出第2个界面
对于每个uiviewController,...
分类:
移动开发 时间:
2014-07-08 10:57:18
阅读次数:
240
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:
其他好文 时间:
2014-07-08 00:47:33
阅读次数:
199
TCP(Transmission Control Protocol) 传输控制协议TCP是主机对主机层的传输控制协议,提供可靠的连接服务,采用三次握手确认建立一个连接:位码即tcp标志位,有6种标示: SYN(synchronous建立联机) ...
分类:
其他好文 时间:
2014-07-08 00:21:03
阅读次数:
323