`
Blackbaby
  • 浏览: 179790 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
                                             原文链接: http://www.cnblogs.com/kingcucumber/p/3142507.html  
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; char ...
命令行执行:   route add 10.120.0.56 mask 255.255.255.255 10.120.1.1 metric 1   10.120.0.56 本地地址   10.120.1.1 网关地址   参考:http://hi.baidu.com/btb368/item/8b530eb56a2cb7422aebe39f
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; char ...

关于JVM说明的摘要

    博客分类:
  • java
      If the JVM is launched with the JPDA (Java Platform Debugger Architecture) enabled, a class is dynamically reloadable. After the JVM loads a class, the old version of the class definition can be unloaded and a new one can be reloaded again. That is, the definition of that class can be dynamica ...
final static HostnameVerifier DO_NOT_VERIFY = new HostnameVerifier() { public boolean verify(String hostname, SSLSession session) { return true; } }; //Trust every server - dont check for any certificate private static void trustAllHosts() { // Create a trust manager that does not ...
  mvn eclipse:eclipse -Dwtpversion=1.0  

Base62

    博客分类:
  • java
public class Base62 { private static final String baseDigits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; public static String toBase62(int decimalNumber) { return fromDecimalToOtherBase(62, decimalNumber); } public static int fromBase62(String base ...

iframe高度适应

   var adjustIframe = function (id) { var iframe = document.getElementById(id) var idoc = iframe.contentWindow && iframe.contentWindow.document || iframe.contentDocument; var callback = function () { var iheight = Math.max(idoc.body.scrollHeight, idoc.documentElemen ...
top:分割窗口最高层次的浏览器窗口。采用如下方式进行访问:top.frames['sub_frm']. parent:当前分割窗口的父窗口。采用如下方式访问:parent.document. opener:指用window.open等方式创建的新窗口对应的原窗口。 iframe:在一个页面含有某个iframe,其id="iframeA" name="IframeA",此时使用document.getElementById("IframeA")取到的是iframe标签对象,通过该对象可以获取iframe的各个属性,例如src、fr ...
The new operator takes a function F and arguments: new F(arguments...). It does three easy steps: Create the instance of the class. It is an empty object with its __proto__ property set to F.prototype. Initialize the instance. The function F is called with the arguments passed and this set to b ...
function is(type, obj) { var clas = Object.prototype.toString.call(obj).slice(8, -1); return obj !== undefined && obj !== null && clas === type; } is('String', 'test'); // true is('String', new String('test')); // true        In the above example, Object. ...
public abstract class AbstractHibernateDAOImpl<T extends Serializable, KeyType extends Serializable> extends HibernateDaoSupport { protected Class<T> domainClass = getDomainClass(); /** * Method to return the class of the domain object */ protected abstract Cl ...
   web.xml     <?xml version="1.0" encoding="UTF-8"?> <web-app id="tomcat-demo" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.s ...
saveOrUpdate()作用:  1.如果对象已经在本session中持久化了,不做任何事;  2.如果另一个与本session关联的对象拥有相同的持久化标识(identifier),抛出一个异常;  3.如果对象没有持久化标识(identifier)属性,对其调用save();  4.如果对象的持久标识(identifier)表明其是一个新实例化的对象,对其调用save();  5.如果对象是附带版本信息的(通过或) 并且版本属性的值表明其是一个新实例化的对象,save()它.
Global site tag (gtag.js) - Google Analytics