HTML5新增屬性

來源:互聯網
上載者:User

標籤:jquer   rate   src   邊框   nload   block   san   content   提交   

1.<meta http-equiv="Pragma" content="no-cache"/>

  //禁止頁面緩衝

 

2.<script defer src="http://code.jquery.com/jquery-1.10.1.min.js" onload="alert(‘a‘)"></script>

  //defer是延遲執行,即指令檔下載好之後,不執行‘a’,而是等全部網頁載入完之後才執行  

<script async src="http://code.jquery.com/jquery-migrate-1.2.1.min.js" onload="alert(‘b‘)"></script>

  //async是非同步執行,即下好指令檔後,執行‘b’的同時也載入後面的頁面

 

3.<iframe seamless srcdoc="<h1>hello</h1>" sandbox="allow-scripts"  src="https://www.baidu.com"></iframe>(感覺很有用哦)

  //iframe為內嵌頁面/架構——seamless表示內嵌的網頁無邊距和邊框;srcdoc出現後,src中內容會被忽略;sandbox是安全限制:a.禁止提交表單 b.禁止運行JS指令碼 c.異源限制

 

 

                                     以上內容均為借鑒!

HTML5新增屬性

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.