8. ü


8.3 String Object

  ݱ 鼭 ٸ (?) ü ٷ ڿ(String)̴. ڿ ü.

ݱ ü Mathü ϰ κ ü new ؼ ڸ ҷ ߴ.( , ߿ ׺ ü ̴. ) ڿ δ ۼؾ Ѵ.

var str = new String("deadfire");
  ׷, 츮 ݱ ̷ Դ.

var str = "deadfire";
  , ڿ ü "" newڸ Ѵٰ ִ.

  • length : ڿ ü ⺻ ش ڿ ϰ ִ length Ƽ ִ.

  • HTML Tag Լ : HTML Tag Bold ǹϴ <B> </B>±װ ִµ, Stringü bold() Լ ϴ ̴. Լ document.write()Լ Ͽ ȭ鿡 ڿ Ư ±׷ ְ ִ Լ̴.

    anchor("str")Anchor<A NAME="str">ڿ</A>
    big()ū <BIG></BIG>
    blink()<BLINK></BLINK>
    bold() <B></B>
    fixed()Ÿڱ<TT></TT>
    fontcolor("str")ڻ<FONT COLOR="str"></FONT>
    fontsize(size)ũ<FONT SIZE="size"></FONT>
    italics()Ÿü<I></I>
    link("str")ũ<A HREF="str"></A>
    small()<SMALL></SMALL>
    strike()<STRIKE></STRIKE>
    sub()Ʒ÷<SUB></SUB>
    sup()÷<SUP></SUP>

    ) "deadfire".bold().fontsize(6).link("http://hometown.weppy.com/~deadfire/");
  • ֿ Լ

    charAt(idx)idx° ڸ ´.
    charCodeAt(idx)idx° Unicode encodingڸ ´.
    concat(str,...)ڿ ġ, + .
    fromCharCode(code1,...)Unicode encodingڷ Ϲ ڸ ´.
    indexOf(str)str Ÿ ù ° ġ(ʺ ˻)
    lastIndexOf(str)str Ÿ ù ° ġ(ʺ ˻)
    match(regexp)RegExpü ˻
    replace(regexp, text)RegExpü شϴ ڸ text ü
    search(regexp)RegExpü ϴ ( true, false )
    slice(start, end)ڿ κ ´.
    split(и, )ڿ иѴ. (迭 ϵȴ)
    substr(start_idx, len)ڿ κ ´.
    substring(start_idx, len)ڿ κ ´.
    toLowerCase() ҹڷ ȯѴ.
    toUpperCase() 빮ڷ ȯѴ.
    toString()׳ ڱ ڽ ش.
    valueOf()̰͵ ׳ ڱ ڽ ش.


      ñ Լ ڹٽũƮ ۼؼ ׽Ʈ .

- Last Update : 2001.7.3 by Deadfire(http://www.deadfire.net)

Javascript

Javascript?
۵


     - HTML߰ϱ
     -
     - Լϱ
     - ⺻ Լ

     -
     -
     -
     -
     - Լ
ü
     - Object?
     - Ӽ Լ
     - ü
ü
     - Date
     - Math
     - String
     - Array
     - Boolean
     - Function
     - Argument
     - Number
     - Global
     - Ÿ
     - with / delete
Event ü
׺ ü
     - ׺Ͱü
     - ü
     - navigator
     - window
     - location
     - history
     - document
     - form
     - form elements
Frame ü
Ÿ
     - Animation
     - Audio
ġ

Copyright 1997 ~, Deadfire Program Master