Connector/J 5.1은 MySql 5 와 호환된다 MySql 5 버전은 Connector/J 2.0과 호환되지 않는다. - jdbc 다운 (http://dev.mysql.com/downloads/connector/j/5.1.html) - 압축을 풀고 mysql ... .jar 파일을 %JAVA_HOME%\jre\lib\ext 에 복사한다 - 환경변수 설정에서 classpath에 mysql ... .jar파일의 경로를 추가한다 - 그래야 Tomcat 실행시 %JAVA_HOME%\jre\lib\ext 폴더 내의 library 들이 톰캣 실행시 사용 될 수 있다.
//Using hasOwnProperty to build resilient object looping. Object.prototype.otherKey = "otherValue"; var object = { key: "value" }; for ( var prop in object ) { if ( object.hasOwnProperty( prop ) ) { assert( prop, "key","There should only be one iterated property." ); } } //XPath if ( typeof document.evaluate === "function" ) { function getElementsByXPath(expression, parentElement) { var results ..
//Exposing the properties of the katana object using with(){}. var use = "other"; var katana = { isSharp: true, use: function(){ this.isSharp = !this.isSharp; } }; with ( katana ) { assert( true, "You can still call outside methods." ); isSharp = false; use(); assert( use !== "other","Use is a function, from the katana object." ); assert( this !== katana,"this isn't changed - it keeps its origin..
function RegMerge() { var expr = []; for ( var i = 0; i < arguments.length; i++ ) expr.push( arguments[i].toString().replace(/^\/|\/\w*$/g, "") ); return new RegExp( "(?:" + expr.join("|") + ")" ); } var re = RegMerge( /Ninj(a|itsu)/, /Sword/, /Katana/ ); assert( re.test( "Ninjitsu" ),"Verify that the new expression works." ); assert( re.test( "Katana" ),"Verify that the new expression works." )..
* 함수의 사용 function isNimble(){ return true; } var canFly = function(){ return true; }; window.isDeadly = function(){ return true; }; //함내의 함수 function stealthCheck() { var ret = stealth() == stealth(); assert( ret, "함수함수!" ) return true; function stealth(){ return true; } } stealthCheck(); var obj = {}; var fn = function(){}; obj.prop = "some value"; fn.prop = "some value"; assert( obj.prop == fn..