美文网首页
2018-08-06

2018-08-06

作者: 呵呵_e03d | 来源:发表于2018-08-06 22:51 被阅读0次

    今天看了一些 React 和 ARKit 的知识点

    • ES6 计算的属性名字(Computed property names)?
      :ES6 对象初始化的时候,属性名称可以用 [expression] 来表示,expression 是计算得到的字符串。例如:var obj = { ['a' + 'b'] : 10},等效 var obj = { 'ab' : 10 }。

    Starting with ECMAScript 2015, the object initializer syntax also supports computed property names. That allows you to put an expression in brackets [], that will be computed and used as the property name. This is reminiscent of the bracket notation of the property accessor syntax, which you might have used to read and set properties already. Now you can use a similar syntax in object literals, too:

    • 上文提到的属性访问器(property accessor)又是什么呢?
      :属性访问器提供了两种方法访问属性,一种是点语法,另一种是[]语法。例如:object.property or object.[property]
    • 那 javascript 属性点语法和括号语法有什么区别呢?
      :object.property 中 property 必须是合法的 javascript 标识符,例如字母数字序列,下划线,美元 $ 符号。不能以数字开头。而,object[property] 中 property 是字符串不必须是合法的标识符
    • javascript 的属性名必须是字符串。
    • HTML 中 <a> ?
      超链接符号,用于从一张页面链接到另一张页面。最重要的属性是href。例如:<a href="http://www.w3school.com.cn">W3School</a>

    • ARKit:管理会话生命周期(session lifecycle)和跟踪质量(tracking quality)?
      :session lifecycle 大致有 not available,limited,nomal。

    • 词汇:
      notation:符号,表示法
      sequence:序列

    相关文章

      网友评论

          本文标题:2018-08-06

          本文链接:https://www.haomeiwen.com/subject/exbuvftx.html