- 浏览: 88899 次
- 性别:
- 来自: 宜昌
最新评论
-
chenaha:
不知道大哥是否会用sencha touch,我想写一个这样的效 ...
用ext读取XML写一个“省-市-邮编”三级联动
文章列表
package com.rzy.api.db;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Query
{
private static Query query = null;
private String table = null;
private String baseSQL = null;
private Map<String, String> condMap ...
/**
*
* 简单数据库操作接口
*
* @author ruanzhiyong6496
* @version 1.0
*/
public class BaseDao
{
private static BaseDao baseDao = null;
private List<Connection> idle = new ArrayList<Connection>(0);
private Map<Thread, Connection> busy = new HashMap<Thread, Co ...
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
/**
* ZIP 压缩包读取和解压工具类
* @au ...
package com.rzy.api;
public class Pager
{
private int currPage = 1;
private int pageSize = 10;
private int pageCount;
private int count = 0;
private String url;
private String tagBg = "#fff url(aaa.gif)";
private String tagColor = "#000";
public Pager(int cou ...
function MyTree(cnt) {
this.imgPath = "images/treeimg/";
this.setRoot(new Node(-1, "root", ""));
cnt = document.getElementById(cnt);
//cnt.style.width = 210;
//cnt.style.height = 350;
cnt.style.fontSize = "12px";
//cnt.style.borderStyle = "so ...
<html>
<head>
<script type="text/javascript">
function preview() {
var x = document.getElementById("myfile");
d1.style.display = "block";
d2.style.display = "block& ...
function Menu() {
this.bars = [];
}
Menu.prototype.add = function (title, icon) {
var bar = new Bar(title, icon);
this.bars.push(bar);
return bar;
};
Menu.prototype.render = function () {
var container = document.body;
var tbarH = bbarH = 30;
var len = this.bars.length;
if (argume ...
//Ajax扩展
var Ajax = function(url, params, callback) {
var reqError = "\u54cd\u5e94\u5f02\u5e38\uff01\uff01\uff01";
var sendData = null;
var createXHR = function () {
var XHR;
if (window.XMLHttpRequest) {
XHR = new XMLHttpRequest();
} e ...
1.配置XFire运行环境: eclipse新建一个Web Service project,命名为ws,添加所需的类库,web.xml中自动生成
<?xml version="1.0" encoding="GB2312">
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dt ...
首先定义一个要调度的工作类:
public class Task{
public void work() {
System.out.println("Quartz的任务调度!");
}
}
剩下的就是Spring配置文件:
<beans>
<!-- 要调用的工作类 -->
<bean id="quartzJob&q ...
<link type="text/css" rel="stylesheet" href="ext-2.3.0/resources/css/ext-all.css">
<link type="text/css" rel="stylesheet" href="ext-2.3.0/resources/css/xtheme-green.css">
<script type="text/javascript" src="ext- ...
Ext 组件super Component,它是一个可定位的"复合元素"(compositeElememt),其子类BoxComponent
我们知道js获得Dom元素一个比较通用的一个方法是:
var el = document.getElementById('id');
Ext为了能更好的为每个Dom元素"服务",对其进行了再次封装即Dom元素==》Element,并为Element定义了一些常用的方法,以方便我们比以往更简单的来操控这些元素
归纳起来主要有以下几个方面:
1.