반응형
//Get object 특수문자
$._fnCheckSC = function (value) {

    var vObj_SC = new Object();

    //특수문자 아스키 코드
    vObj_SC.ExclamationPoint = String.fromCharCode("33"); //!
    vObj_SC.Quotation = String.fromCharCode("34"); //"
    vObj_SC.Sharp = String.fromCharCode("35"); //#
    vObj_SC.DollarSign = String.fromCharCode("36"); //$
    vObj_SC.PercentSign = String.fromCharCode("37"); //%
    vObj_SC.Ampersand = String.fromCharCode("38"); //&
    vObj_SC.Apostrophe = String.fromCharCode("39"); //'
    vObj_SC.Lparentheses = String.fromCharCode("40"); // ( 
    vObj_SC.Rparentheses = String.fromCharCode("41"); // )    
    vObj_SC.Asterisk = String.fromCharCode("42"); // *
    vObj_SC.Plus = String.fromCharCode("43"); // +
    vObj_SC.Comma = String.fromCharCode("44"); // ,
    vObj_SC.Minus = String.fromCharCode("45"); // - 
    vObj_SC.Dot = String.fromCharCode("46"); // .
    vObj_SC.Slash = String.fromCharCode("47"); // /
    vObj_SC.Colon = String.fromCharCode("58"); // :
    vObj_SC.Semicolon = String.fromCharCode("59"); // ;
    vObj_SC.LAngle = String.fromCharCode("60"); // <
    vObj_SC.Equal = String.fromCharCode("61"); // =
    vObj_SC.RAngle = String.fromCharCode("62"); // >
    vObj_SC.Question = String.fromCharCode("63"); // ?
    vObj_SC.Sign = String.fromCharCode("64"); // @
    vObj_SC.LBracket = String.fromCharCode("91");  // [
    vObj_SC.BackSlash = String.fromCharCode("92");  //\
    vObj_SC.RBracket = String.fromCharCode("93"); // ]
    vObj_SC.Circumflex = String.fromCharCode("94"); // ^
    vObj_SC.Underline = String.fromCharCode("95"); // _
    vObj_SC.Grave = String.fromCharCode("96"); // '
    vObj_SC.LBrace = String.fromCharCode("123"); // {
    vObj_SC.VerticalBar = String.fromCharCode("124"); // |
    vObj_SC.RBrace = String.fromCharCode("125"); // } 
    vObj_SC.Tilde = String.fromCharCode("126"); // ~
};

 

간략 요약

특수문자 아스키 코드로 작성하여 필요한 것만 쓰는것으로 만든 함수입니다.

어디다가 쓸지는 잘 모르겠네요.. 왜 만든거지 ㅋㅋ

 

+ Recent posts