久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)站

      js中“==”和“===”有什么區(qū)別

      js中“==”和“===”有什么區(qū)別

      區(qū)別如下:

      (推薦學習:js教程)

      ==表示等同,===表示恒等;

      ==只比較內(nèi)容,而===既比較內(nèi)容也比較數(shù)據(jù)類型。

      測試代碼:

      “==”

      100 == "100"            // true 1 == true               // true null == null            // true undefined == undefined  // true null == undefined       // true true == "20"            // false "1" == "01"             // false,此處等號兩邊值得類型相同,不要再轉(zhuǎn)換類型了!! NaN == NaN              // false,NaN和所有值包括自己都不相等。

      “===”

      100 === "100"            // false 1 === true               // false NaN === NaN              // false null === undefined       // false 'abc' === "abc"          // true false === false          // true null === null            // true undefined === undefined  // true

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