zoukankan      html  css  js  c++  java
  • ES7参考---ES7相关

    ES7参考---ES7相关

    一、总结

    一句话总结:

    1、指数运算符(幂): **
    2、Array.prototype.includes(value) : 判断数组中是否包含指定value
    console.log(3 ** 3);//27
    let arr = [1,2,3,4, 'abc'];
    console.log(arr.includes(2));//true
    console.log(arr.includes(5));//false

    二、ES7相关

    博客对应课程的视频位置:

     1 <!DOCTYPE html>
     2 <html lang="en">
     3 <head>
     4   <meta charset="UTF-8">
     5   <title>Title</title>
     6 </head>
     7 <body>
     8 <!--
     9 1. 指数运算符(幂): **
    10 2. Array.prototype.includes(value) : 判断数组中是否包含指定value
    11 
    12 -->
    13 <script type="text/javascript">
    14     console.log(3 ** 3);//27
    15     let arr = [1,2,3,4, 'abc'];
    16     console.log(arr.includes(2));//true
    17     console.log(arr.includes(5));//false
    18 </script>
    19 </body>
    20 </html>
     
  • 相关阅读:
    java的反射机制浅谈 分类: java
    2.4.3 Cow Tours
    2.4.2 Overfencing
    2.4.1 The Tamworth Two
    Shortest Paths
    2.3.5 Controlling Companies
    2.3.4 Money Systems
    2.3.3 Zero Sum
    2.3.2 Cow Pedigrees
    2.3.1 Longest Prefix
  • 原文地址:https://www.cnblogs.com/Renyi-Fan/p/12590501.html
Copyright © 2011-2022 走看看