Baseline Widely available
HTMLCollection.length
屿§è¿å HTMLCollection
ä¸çå
ç´ æ°éã
ä¸ä¸ªæ£æ´æ°ï¼è¡¨ç¤º HTMLCollection
ä¸å
ç´ çæ°éã
length
屿§å¨ DOM ç¼ç¨ä¸é叏徿ç¨ãå®é常ç¨äºæµè¯éåçé¿åº¦ï¼å»ç宿¯å¦ççåå¨ãå®ä¹é常ç¨äº for
循ç¯ä¸çè¿ä»£å¨ï¼å¦ä¸ç¤ºä¾ã
// All the elements with the class ".test" in the document
var items = document.getElementsByClassName("test");
// For each test item in the list,
// append the entire element as a string of HTML
var gross = "";
for (var i = 0; i < items.length; i++) {
gross += items[i].innerHTML;
}
// gross is now all the HTML for the test elements
è§è æµè§å¨å
¼å®¹æ§
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4