10 2015 档案
摘要:select p.id,p.parent_id,group_concat(distinct(CONCAT("分类名称:",c.name)) order by c.id desc separator " || ") as remark from picture as p left join cate...
阅读全文
摘要:使用canvas 的 toDataUrl方法会遇到跨域问题chrome 会报下面的错误: Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be...
阅读全文
摘要:SVG文件的JavaScript操作获取SVG DOM如果使用img标签插入SVG文件,则无法获取SVG DOM。使用object、iframe、embed标签,可以获取SVG DOM。var svgObject = document.getElementById("object").content...
阅读全文
摘要:String agent = request.getHeader("User-Agent").toLowerCase(); Pattern pattern = Pattern.compile("msie (\\d+)"); Matcher matcher = pattern.ma...
阅读全文
摘要:public synchronized void sort(File file, int displayOrder, int parentId){ int max = count(parentId); if(displayOrder > max){ ...
阅读全文
摘要:public class FormatChecker { /** * 判断是否含有汉字 * @param string */ public static boolean containChinese(String string){ Patte...
阅读全文
摘要:对于前端开发者来说,在开发过程中需要监控某些表达式或变量的值的时候,用 debugger 会显得过于笨重,取而代之则是会将值输出到控制台上方便调试。最常用的语句就是console.log(expression)了。然而对于作为一个全局对象的console对象来说,大多数人了解得还并不全面,当然我...
阅读全文
摘要:package com.rubekid.springmvc.utils;import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io...
阅读全文
摘要:package com.rubekid.springmvc.utils;import java.awt.AlphaComposite;import java.awt.Graphics2D;import java.awt.geom.AffineTransform;import java.awt.ima...
阅读全文