久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網
      最全最豐富的資訊網站

      angular中 “?” 和 “!”有什么用?

      angular中 “?” 和 “!”有什么用?

      相關教程推薦:《angular教程》

      ? 用來檢查 問號前面的變量為 null 或 undefined 時,程序不會出錯。

        stu2: Student = {     id: 1,     name: undefined,     age: 3   };    <h1>stu2 name {{stu2!.name}}</h1>  // stu2 name  <h1>stu2 id {{stu2!.id}}</h1>            // stu2 id 1

      ! 用來檢查 感嘆號后面的變量為 null 或 undefined 時, 程序不會出錯。

      stu3: Student;   <h1>stu3 id{{stu3?.id}}</h1>                // stu3 id <h1>stu3 name{{stu3?.name}}</h1>      // stu3 name

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