文章列表
here is the steps using this algorithm to sort:
a)5,2,6,4,1,3
b)2,5,6,4,1,3
c)2,5,6,4,1,3
d)2,4,5,6,1,3
e)1,2,3,4,5,6
int[] a1 = new int[] {5,2,6,4,1,3};
int key;
int i;
for (int j = 1; j < a1.Length; j ...
SSH 框架整合视频:
http://v.youku.com/v_playlist/f3994395o1p17.html
DOM4j :
http://www.ibm.com/developerworks/cn/xml/x-dom4j.html
Struts 2 讲义:
http://d.download.csdn.net/down/3415238/zxchlove2010
Spring教程:
http://wenku.baidu.com/view/815ca2335a8102d276a22f3f.html
a simple message pad using jquery mobile.
今天下午接到一个优化的任务,客户反映invite attendee to event 时,会有超时错误。我查了查代码,用的是cfloop,而且套用了3次。能不慢吗?!!
google一下,才知道cfscript 效率很好,(http://www.blue1000.com/bkhtml/2006-09/45939.htm).
<cfscript>
for(i = 1; i lte ArrayLen(oneAccsIdList); i++){
temp = oneAccsIdList[i];
for(j = 1 ; j lte Ar ...
create materialized view reg_count_mv
TABLESPACE AHP_DATA_T01 --保存表空间
BUILD IMMEDIATE --延迟刷新不立即刷新 build immediate/DEFERRED
refresh force --如果可以快速刷新则进行快速刷新,否则完全刷新[fast/complete/force(default)]
on commit --按照指定方式刷新on DEMAND/commit, if on demand the two lines below are required.
--start with to_dat ...
Day by day, programmers are able to get more done in less time. With
today’s high level languages, development environments, tools and the
“rapid application development” mindset, both programmers and managers
have become accustomed to extremely fast development cycles. Programmers
are now mo ...
I found that maxlength and requeried of jquery cannot use together. so we need to add a new method to validate a special field which need length limitation and also a field which is requried. code is as below:
$(document).ready(function(){}); 写道
$.validator.addMethod("lengthValidate", f ...
给图片加入onclick方法
- 博客分类:
- js
写道
<img src="../images/Picture21.png" id="imgSSAFile" name="imgSSAFile" onclick="window.open('../common/uploads/#SSA_FL_NM#');" style="cursor:pointer;" />
jquery 写道
$(e).find("#imgHide").unbind('click');
$(e).find("#imgHide").click(function(){
window.open(fileName);
});
每次先清空click方法,再增加click方法。
showdialog 在IE8中的post方法是打开一个新窗口,与火狐不同。所以如果在模态窗口里提交给后台的一些操作, 会造成不能控制关闭窗口的功能。解决办法是在<head></head>里加入<base target="_self" />.这样IE8里就好用了。
见如下代码:
ssa_list_content.cfm 写道
<script type="text/javascript" language="javascript">
function respond(e){
...
后台返回result 写道
<cfset result = SerializeJSON(ssafilename&"|~|"&dateformat(dateNow,"#application.date_format#"), false)>
前台接值 写道
var rsp = response.split("|~|");
if ($.trim(rsp[0]).length == 0)
{
return;
}
此时,rsp变成数组,长度为2
写道
var dt = Date.fromString($("#txtDate").val());
var str = dt.asString("ddd dd/mmm/yy");
javascript 如何对日期进行格式化?
以“ddd dd/mmm/yy” 格式输出 "12/Jan/2010"。
date.js 写道
/*
* Date prototype extensions. Doesn't depend on any
* other code. Doens't overwrite e ...
硬盘权限设置
C:/ 下的用户及权限
Administrator 完全控制、修改、读取及运行、列出文件夹目录、读取、写入
system 完全控制、修改、读取及运行、列出文件夹目录、读取、写入
use ...
- 2009-07-27 10:03
- 浏览 1221
- 评论(0)
Struts 2.0 的登录代码网上很多,本文只写我自己在做登录时需要注意的几点:
首先应该到Struts 2.0的5个基本jar包考入项目。
1.Struts 的配置文件在web-INF下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://ww ...
- 2009-07-08 13:15
- 浏览 1364
- 评论(0)
Struts2.0+Spring+IBatis:
开发顺序可以是:sql>bean>dao>service>action>jsp(顺序是从数据层到表现层)
目录机构为:pakage目录下包括:bean\action\service\dao层。
为了提高系统的可扩展性,应采用接口编程方法。通过覆盖接口中的程序来完成功能。DAO
文件操作数据库(.sql文件),service层则调用实例化的DAO,action调用Service,并实
例化,最后.jsp文件中Struts表单调用各自的action。
开发中遇到一个问题就是 ...
- 2009-06-11 17:38
- 浏览 865
- 评论(0)