Skip to content

Commit 4a74e8e

Browse files
authored
Merge pull request soyaine#44 from fyzhu/patch-1
Update index-SOYAINE.html add Array.from() for DOM query result
2 parents 3ec39d4 + b8fce47 commit 4a74e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04 - Array Cardio Day 1/index-SOYAINE.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113

114114
// 下面是我在豆瓣里筛选书名里含有 CSS 的书的代码
115115
// https://book.douban.com/tag/web
116-
// const links = document.querySelectorAll('.subject-list h2 a');
116+
// const links = Array.from(document.querySelectorAll('.subject-list h2 a'));
117117
// const book = links
118118
// .map(link => link.title)
119119
// .filter(title => title.includes('CSS'));

0 commit comments

Comments
 (0)