if (!Array.prototype.forEach) {
Array.prototype.forEach = function(callback, thisArg) {
var T, k;
if (this === null) {
throw new TypeError(' this is null or not defined');
}
function addCustomEvent(el, e, c) {
if (el.attachEvent) {
return el.attachEvent('on'+e, c);
} else {
return el.addEventListener(e, c, false);
}
}
addCustomEvent(element, 'eventName', callback);
; workspace의 경로를 윈도우 타이틀바에 출력
-showlocation
; 클래스 유효성 검사 생략, 그러나 나중에 어딘서 오류나는지 확인하기 위해 사용 추천
;-Xverify:none
; jdk 버전으로 설정하면 속도 향상
-Dosgi.requiredJavaVersion=1.6
var dateFormat = function () {
var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
timezoneClip = /[^-+\dA-Z]/g,
pad = function (val, len) {
val = String(val);
len = len || 2;
while (val.length < len) val = "0" + val;
return val;
if (!String.prototype.format) {
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
return typeof args[number] != 'undefined'
? args[number]
: match
;
});
npm install --save express body-parser jsonwebtoken
https://mvnrepository.com/artifact/org.springframework.security/spring-security-crypto
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;