`
qihuitoday
  • 浏览: 11384 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论
文章列表
  HTML <base> 标签 定义和用法 target 属性规定在何处打开页面上的所有链接。 实例 为页面上所有链接规定默认目标: <head> <base target="_blank" /> </head>   <body> <a href="http://www.w3school.com.cn ...
1. QTP测试对象的Type方法 举例:  [vb] view plaincopyprint? Browser("Untitled").Dialog("Properties").WinButton("OK").Type micReturn   Browser("Untitled").Dialog("Properties").WinButton("OK").Type micReturn 2. WSH中的SendKeys方法   举例: ...
package com.xuanwu.mtoserver.util;import java.io.*;/** * @author Toby 复制文件夹或文件夹 */public class FileUtil {    public static void main(String args[]) throws IOException {        // 源文件夹        String url1 = "D:/user/test/";        // 目标文件夹        String url2 = "D:/user/testcopy/
<html>  <head>  <title> New Document </title><script> var xCalendar,yCalendar,zCalendar,downCalendar=false,objCalendar;function startMoveCalendar(){  objCalendar=event.srcElement;   //事件触发对象  objCalendar.setCapture();       //设置属于当前对象的鼠标捕捉  zCalendar=objCalendar.style.zI ...
public class QuickSort {  public static void quick_sort(int s[], int l, int r) {  if (l < r) {   int i = l, j = r, x = s[l];   while (i < j) {    while (i < j && s[j] >= x)     // 从右向左找第一个小于x的数     j--;    if (i < j)     s[i++] = s[j];    while (i < j && s[i] < ...
在Struts2里,如果需要在Action中使用session,可以通过下面两种方式得到   1.通过ActionContext class中的方法getSession得到   2.Action实现org.apache.struts2.interceptor.SessionAware接口的方式来对session进行操作   下面先看一个采用第一种方式,在action中得到session的例子   package s2.ex.action; import java.util.Map; import com.opensymphony.xwork2.ActionContext; import ...
http://www.cnblogs.com/lingxue3769/archive/2010/12/30/1922169.html PrintWriter自身并没有处理编码的职责,它还是应该看成一个装饰器比较好:它就是为了输出更方便而设计的,提供print、println、printf等便利方法。要设置编码的话,可以在它的底层Writer上设置:(这里以OutputStreamWriter为底层Writer) new PrintWriter(new OutputStreamWriter(new FileOutputStream("yourfilepath"),&q ...
//获取控件左绝对位置 function getAbsoluteLeft(objectId) { o = document.getElementById(objectId) oLeft = o.offsetLeft            while(o.offsetParent!=null) { oParent = o.offsetParent    oLeft += oParent.offsetLeft o = oParent } return oLeft } //获取控件上绝对位置 function getAbsoluteTop(objectId) { o = document.g ...
Struts中文帮助文档
Global site tag (gtag.js) - Google Analytics