Skip to content

mcdowell8023/node_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

读狼叔 nodejs 学习笔记

临时工具

function getAllContents(tag = '.content') {
  // 看书工具函数
  let arr = document.querySelectorAll(tag)
  let contents = []
  for (let i = 0; i < arr.length; i++) {
    const item = arr[i]
    contents.push(item.textContent)
  }
  const str = contents.toString()
  // console.log(str,'i')
  console.log(contents.join('\r\n'), ':以上为获取的全部内容')
}

About

node_project by mcdowell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published