久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      javascript怎么將小寫字母轉(zhuǎn)為大寫

      JS將小寫字母轉(zhuǎn)為大寫的方法:1、利用toUpperCase()函數(shù),語法“string.toUpperCase()”;2、利用toLocaleUpperCase()函數(shù),語法“string.toLocaleUpperCase()”。

      javascript怎么將小寫字母轉(zhuǎn)為大寫

      本教程操作環(huán)境:windows7系統(tǒng)、javascript1.8.5版、Dell G3電腦。

      javascript將小寫字母轉(zhuǎn)為大寫的方法

      方法1:利用toUpperCase()

      toUpperCase() 方法用于把字符串轉(zhuǎn)換為大寫。

      語法:

      string.toUpperCase()

      返回值:一個新的字符串,在其中 string 的所有小寫字符全部被轉(zhuǎn)換為了大寫字符。

      var str="Hello World!" document.write(str.toUpperCase())

      javascript怎么將小寫字母轉(zhuǎn)為大寫

      方法2:利用toLocaleUpperCase()

      toLocaleUpperCase() 方法用于把字符串轉(zhuǎn)換為大寫。

      語法:

      string.toLocaleUpperCase()

      返回值:一個新的字符串,在其中 string 的所有小寫字符全部被轉(zhuǎn)換為了大寫字符。

      注:toLocaleUpperCase() 方法按照本地方式把字符串轉(zhuǎn)換為大寫。只有幾種語言(如土耳其語)具有地方特有的大小寫映射,所有該方法的返回值通常與 toUpperCase() 一樣。

      var str="Hello World!" console.log(str.toLocaleUpperCase());

      javascript怎么將小寫字母轉(zhuǎn)為大寫

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號