删除输出

This commit is contained in:
pplokijuhyg 2020-01-04 00:04:47 +08:00
parent 7a673b274d
commit 72e55f25a0
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ let gethtml = (name) => {
} catch (error) {
num++
console.log(num)
// console.log(num)
if(num > 10){
res([])
clearInterval(set)
@ -86,11 +86,11 @@ let get = (name) => {
await gethtml(name).then((res) => {
html = res
})
console.log(html)
// console.log(html)
let $ = cheerio.load(html)
let list = []
await $("#dmList ul li").each((index, ele) => {
console.log(index,123)
// console.log(index,123)
let item = cheerio.load($(ele).html(), { decodeEntities: false })
let name = item("dl dt a").html()
let date = item("dl dd p").eq(0).html()

View File

@ -37,7 +37,7 @@ let gethtml = (name) => {
} catch (error) {
num++
console.log(num)
// console.log(num)
if(num > 10){
res([])
clearInterval(set)