• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • JavaScript[對象.屬性]集錦之三

    發表于:2007-06-21來源:作者:點擊數: 標簽:
    下一頁 1 2 3 string對象 string對象為操作字符串的內容提供了很多方法. 屬性 length 字符串的長度,即字符串中字符的個數. 方法 big(),blink(),bold(),fixed(),italics(),small(),sub(),strike(),sup(),fontColor(color),fontSize(size) 以上方法為字符串增

    下一頁 1 2 3 

       string對象


    string對象為操作字符串的內容提供了很多方法.


    屬性

    length 字符串的長度,即字符串中字符的個數.


    方法

    big(),blink(),bold(),fixed(),italics(),small(),sub(),strike(),sup(),fontColor(color),fontSize(size)

    以上方法為字符串增加相應的HTML標記.

    charAt(index) 返回字符串中index處的字符.

    indexOf(searchValue,[fromIndex]) 該方法在字符串中尋找第一次出現的searchValue.如果給定了fromIndex,則從

    字符串內該位置開始搜索,當searchValue找到后,返回該串第一個字符的位置.

    lastIndexOf(searchValue,[fromIndex]) 從字符串的尾部向前搜索searchValue,并報告找到的第一個實例.

    substring(indexA,indexB) 獲取自indexA到indexB的子串.

    toLowerCase(),toUpperCase() 將字符串中所有字符全部轉換成大寫,小寫.

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>