This page is Japanese code S-JIS
先頭に 0 が並んでいる数字の先頭の 0 を消す JavaScript
先頭に 0 が並んでいる数字の先頭の 0 を消す JavaScript です。
文字列中の前後の半角スペースを取り除く JavaScriptで使われるサブ関数の TRimLeft() 関数を利用しているだけ。
仕組み
文字列中の前後の半角スペースを取り除く JavaScriptを見てくれ。
この逆
桁の足りない数値の上位桁に 0 を入れる JavaScript
動作確認ブラウザ
- Netscape Navigator 3.04en for MS-Windows2000
- OK
- Netscape Communicator 4.6jp for MS-Windows9x
- ?
- Netscape Communicator 4.72jp for MS-WindowsNT4.0
- OK
- Netscape Communicator 4.75jp for MS-Windows2000
- OK
- Netscape Communicator 4.75jp for RedHat Linux7
- ?
- Netscape Communicator 4.79Jp for RedHat Linux7.3
- OK
- Netscape 6jp for MS-Windows2000
- ?
- Netscape 6.1 for MacOS9.2.2 (J1-9.2.2 MacOSROM J1-8.8.1)
- OK
- Internet Explorer 5.0(2022) for MacOS9.2.2 (J1-9.2.2 MacOSROM J1-8.8.1)
- OK
- Internet Explorer 4.72.3110.1 SP1 for MS-Windows9x
- ?
- Internet Explorer 4.72.3110.8 SP1 for MS-WindowsNT4.0
- ?
- Internet Explorer 5.00.2314.1003 for MS-WindowsNT4.0
- OK
- Internet Explorer 5.00.2919.6307 for MS-WindowsNT4.0
- OK
- Internet Explorer 5.00.2920.0000 for MS-Windows9x
- OK
- Internet Explorer 5.00.2920.0000 for MS-Windows2000
- OK
- Netscape Communicator 4.7jp for MacOS9.04
- ?
- Netscape 6.2.1jp for MS-Windows2000
- OK
- Netscape 6.2.3jp for MS-Windows2000
- OK
- Opera (free) 5.12 build932 for MS-Windows2000
- OK
- Mozilla 0.9.9 for RedHat Linux7.3
- OK
mail to active@window.goukaku.com