久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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中的箭頭函數(shù)和普通函數(shù)有什么區(qū)別

      js中的箭頭函數(shù)和普通函數(shù)有什么區(qū)別

      js中箭頭函數(shù)和普通函數(shù)區(qū)別如下:

      1、樣式不同,箭頭函數(shù)是 =>,普通函數(shù)是 function;

      2、箭頭函數(shù)不能作為構(gòu)造函數(shù)使用,也就不能使用 new 關(guān)鍵字;

      3、箭頭函數(shù)不綁定 arguments,可以考慮用剩余參數(shù)代替;

      4、箭頭函數(shù)會捕獲其所在上下文的 this 值,作為自己的 this 值,定義的時候就確定了;

      5、call、apply、bind 并不會影響 this 的指向;

      6、箭頭函數(shù)沒有原型屬性;

      7、箭頭函數(shù)不能當作 Generator 函數(shù),不能使用 yield 關(guān)鍵字;

      推薦教程:js入門教程

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