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

      int是JavaScript保留字嗎

      int是JavaScript的保留字。JavaScript中包含了多個保留字:abstract、enum、int、short、boolean、export、interface、static、byte、extends、long、super等。

      int是JavaScript保留字嗎

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

      保留字就是 ECMA-262 規(guī)定的 JavaScript 語言內(nèi)部預(yù)備使用的一組名稱(或稱為命令)。這些名稱目前還沒有具體的用途,是為 JavaScript 升級版本預(yù)留備用的,建議用戶不要使用。具體說明如表所示。

      ECMAScript 保留字
      abstract double goto native static
      boolean enum implements package super
      byte export import private synchronized
      char extends int protected throws
      class final interface public transient
      const float long short volatile

      ECMAScript 3 將 Java 所有關(guān)鍵字都列為保留字,而 ECMAScript 5 規(guī)定較為靈活。

      例如,在非嚴格模式下,僅規(guī)定 class、const、enums、export、extends、import、super 為保留字,其他 ECMAScript 3 保留字可以自由使用;在嚴格模式下,ECMAScript 5 變得更加謹慎,嚴格限制 implements、interface、let、package、private、protected、public、static、yield、eval(非保留字)、arguments(非保留字)的使用。

      說明:

      在代碼中使用關(guān)鍵字作為標識符在大多數(shù)瀏覽器中都會倒是“Identifier Expected”(缺少標識符)錯誤。而使用保留字可能不會導致同樣的錯誤,這要視具體的瀏覽器而定。一般來說,最好不要使用關(guān)鍵字和保留字作為標識符,一遍與ECMAScript未來的版本保持兼容。

      【推薦學習:javascript高級教程】

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