摘要: 在页面上可以使用 ${param.moduleId}来获取在判断中也可以使用${param.moduleId == "test" ? "1":"2"}但要作为参数传递到后台的话,则要用 request.getParameter("moduleId") 而不能用 param.moduleId 或 $(... 阅读全文
posted @ 2014-11-17 11:12 rubekid 阅读(327) 评论(0) 推荐(0) 编辑
摘要: public static BufferedImage setBorderRadius(BufferedImage srcImage, int radius){ int width = srcImage.getWidth(); int height = srcImage.getHeigh... 阅读全文
posted @ 2014-11-09 22:54 rubekid 阅读(2385) 评论(0) 推荐(0) 编辑
摘要: java对象Integer不能引用传递 /** * The value of the Integer. * * @serial */ private final int value; /** * Constructs a ne... 阅读全文
posted @ 2014-11-06 09:38 rubekid 阅读(3032) 评论(0) 推荐(2) 编辑
摘要: /** * 图片绘制3d效果 * @param srcImage * @param radius * @param border * @param padding * @return * @throws IOException *... 阅读全文
posted @ 2014-11-05 23:52 rubekid 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 在IE中,使用如下代码将无法触发跳转: 点击 a作为行内元素而table是块级元素。在IE 6、7、8、9中上面链接将无法生效。js兼容处理$("a:has(table)").bind("click", function()... 阅读全文
posted @ 2014-11-05 20:00 rubekid 阅读(444) 评论(0) 推荐(0) 编辑
摘要: function getStyle(el){ if(window.getComputedStyle){ return window.getComputedStyle(el,null); } return el.currentStyle;}function getSt... 阅读全文
posted @ 2014-10-29 14:04 rubekid 阅读(468) 评论(0) 推荐(0) 编辑
摘要: /** * 二维码 工具 * * @author Rubekid * */public class QRcodeUtils { /** * 默认version */ public static final int DEFAULT_VERSION = 9; /... 阅读全文
posted @ 2014-10-24 00:43 rubekid 阅读(425) 评论(0) 推荐(0) 编辑
摘要: /** * 图片设置圆角 * @param srcImage * @param radius * @param border * @param padding * @return * @throws IOException */ ... 阅读全文
posted @ 2014-10-24 00:40 rubekid 阅读(12328) 评论(0) 推荐(1) 编辑
摘要: 1:function myTest(){ for(var i=0; i< 5; i++){ setTimeout(console.log(i), 0); }}myTest();或者比较正规的写法(code 加上引号):function myTest(){ for(va... 阅读全文
posted @ 2014-10-19 21:46 rubekid 阅读(452) 评论(0) 推荐(0) 编辑
摘要: /** * FreeMarker 辅助类 * @author Rubekid * */public class FreeMarkerHelper { /** * 模板文件存放目录 */ private static final String TEMPLATE_PA... 阅读全文
posted @ 2014-09-19 11:55 rubekid 阅读(233) 评论(0) 推荐(0) 编辑