- 博客(15)
- 资源 (14)
- 收藏
- 关注
原创 如何用 maven 同时 install jar 和 war
背景: 项目在一个super pom下,有多个平行module,在各级依赖中,有一个module 在 pom 中定义 package war,但是开发阶段,只需要其中的jar包来使用。如果一直使用其 war 包来开发调试,maven overlay 会占用较多时间。于是新的需求就是:将这个module 同时打包 jar 和 war 并 intall 到本地 repository 中。开发阶...
2012-11-25 11:54:27
124
原创 js压缩打包
<!-- js压缩 --> <plugin> <groupId>net.alchim31.maven</groupId> <artifactId>yuicompressor-maven-plugin</artifactId> ...
2012-09-05 13:18:46
103
原创 流程图
js:$(document).ready(function(){ //折线 DEMO //$("#1").insertBrokenLine({target : $("#0"), options:{arrows:'single'}}); $("#1").insertBrokenLin...
2012-02-17 17:58:30
100
原创 导出excel2007-respose
String fileName = FileNameUtils.generatorFileName(map);//转换为url时如果有空格会变为+,再转为%20,浏览器就会识别了fileName = URLEncoder.encode(fileName, "UTF-8").replaceAll("\\+", "%20");//导出设置response.setContentType("applica...
2012-01-07 00:35:48
81
原创 javascript非贪婪 -- 用法
var str = '[aa].[bb].[cc]';var array = str.match(/\[(.*?)\]/ig); array[0] = [aa];array[1] = [bb];array[2] = [cc]; 通过在 '*'、 '+' 或 '?' 限定符后放置 '?',该表达式就从贪婪匹配转为了非贪婪或最小匹配。...
2012-01-05 17:21:43
72
原创 页面刷新
1.定时刷新:<META HTTP-EQUIV="Refresh" content="10“ URL=”http://自己的URL"> 如果不写URL,则刷新当前页面 2.用js手动刷新: function refresh() { window.location.reload(); } ...
2011-02-28 10:03:23
70
原创 IBM AIX文件服务器挂载
配置文件服务器linux 为suse 前提条件文件服务器主机上已创建服务器存储目录,根据规划,假设目录为“/home/fileserver”。
2011-02-26 16:46:32
209
原创 ant学习二
<!--替换文件--><replace file="${dest.dir}/bme/WEB-INF/classes/jdbc.properties"> <replacefilter token="@username@" value="${database.username}" /> <replacefilter token="@p
2011-02-23 14:08:43
88
原创 ant学习
<!--编译路径--><path id="common.classpath"> <fileset dir="${environment.JAVA_HOME}" includes="**/*.jar" /> <fileset dir="${dest.dir}/xx/WEB-INF/lib" includes="**/
2011-02-23 13:42:10
69
原创 测试你的javascript
<html> <script type="text/javascript">/**var n1 = 1.7976931348623157E+309;alert(n1); //Infinity alert(typeof(NaN)); // number alert(typeof(Infinity)); //number alert(typeof(null))...
2011-02-16 13:44:29
89
原创 ThreadLocal 与 InheritableThreadLocal
ThreadLocal 的线程安全性稍差的堂兄弟,InheritableThreadLocalThreadLocal 类有一个亲戚,InheritableThreadLocal,它以相似的方式工作,但适用于种类完全不同的应用程序。创建一个线程时如果保存了所有 InheritableThreadLocal 对象的值,那么这些值也将自动传递给子线程。如果一个子线程调用 InheritableThr...
2011-01-20 09:49:49
314
原创 My97DatePicker使用
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8&q
2011-01-12 10:44:07
73
原创 自动隐藏超出宽度的内容
------------------------基于DIV----------------------------------------div { text-overflow: ellipsis; overflow:hidden; } ------------------------基于TABLE----------------------------------------...
2011-01-07 17:09:58
88
原创 javascript 闭包
写在前面的话: 试图翻译自 http://jibbering.com/faq/faq_notes/closures.html 文中大量提到《ECMA 262 》,我也没时间读这东西,可能有问题理解有误。希望纠正。 只译了前边部分,我得理解几天再继续下去。 英文水平差,凑合看吧。 国内找了半天没这篇文章中文版,献丑了就。 读后有种豁然开朗的感觉,清楚了很多javascript的问题。 一、Intro...
2010-10-27 10:18:01
121
原创 js拖拽
.dragArea{ background-color:blue; filter:alpha(opacity=50); -moz-opacity:0.5; } body{ margin:0px; }/*************************************************************...
2010-07-01 23:13:11
89
tcpTrace工具
2011-01-20
IETester v0.4.2 整合了IE5.5、IE6、IE7、IE8--(2)
2010-08-17
IETester v0.4.2 整合了IE5.5、IE6、IE7、IE8.0-(1)
2010-08-17
一个兼容好的js拖拽代码
2010-07-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人