1.querySelector(“選擇塊”,"選擇範圍")方法,時document下的方法,根據制定規則返回找到的第一個符合規則的元素
2.querySelectorAll()方法:同上,返回所有匹配元素。
3.訪問json:window.JSON
4.較完善的文檔結構
1.querySelector(“選擇塊”,"選擇範圍")方法,時document下的方法,根據制定規則返回找到的第一個符合規則的元素
2.querySelectorAll()方法:同上,返回所有匹配元素。
3.訪問json:window.JSON
4.較完善的文檔結構
<script> window.onload = function(){ getRem(720,100) }; window.onresize = function(){ getRe
/* 功能:獲取App根目錄 實例:app.getRoot() 當前訪問路徑:/page/index.html,結果:../ 當前訪問路徑:/page/child/index.html,結果:../.