zoukankan      html  css  js  c++  java
  • cheerio返回数据格式

    通读cheerio API

    {
        options: {
            decodeEntities: false,
            withDomLvl1: true,
            normalizeWhitespace: false,
            xmlMode: false
        },
        _root: {
            '0': {
                type: 'root',
                name: 'root',
                attribs: {},
                children: [Object],
                next: null,
                prev: null,
                parent: null
            },
            options: {
                decodeEntities: false,
                withDomLvl1: true,
                normalizeWhitespace: false,
                xmlMode: false
            },
            length: 1,
            _root: [Circular]
        },
        length: 0,
        prevObject: {
            '0': {
                type: 'root',
                name: 'root',
                attribs: {},
                children: [Object],
                next: null,
                prev: null,
                parent: null
            },
            options: {
                decodeEntities: false,
                withDomLvl1: true,
                normalizeWhitespace: false,
                xmlMode: false
            },
            length: 1,
            _root: [Circular]
        }
    }
    {
       '0': {
           type: 'tag',
           name: 'span',
           attribs: {
               id: 'subtitle'
           },
           children: [
               [Object]
           ],
           next: null,
           prev: {
               data: ':',
               type: 'text',
               next: [Circular],
               prev: [Object],
               parent: [Object]
           },
           parent: {
               type: 'tag',
               name: 'h1',
               attribs: [Object],
               children: [Object],
               next: [Object],
               prev: [Object],
               parent: [Object]
           }
       },
       options: {
           decodeEntities: false,
           withDomLvl1: true,
           normalizeWhitespace: false,
           xmlMode: false
       },
       _root: {
           '0': {
               type: 'root',
               name: 'root',
               attribs: {},
               children: [Object],
               next: null,
               prev: null,
               parent: null
           },
           options: {
               decodeEntities: false,
               withDomLvl1: true,
               normalizeWhitespace: false,
               xmlMode: false
           },
           length: 1,
           _root: [Circular]
       },
       length: 1,
       prevObject: {
           '0': {
               type: 'root',
               name: 'root',
               attribs: {},
               children: [Object],
               next: null,
               prev: null,
               parent: null
           },
           options: {
               decodeEntities: false,
               withDomLvl1: true,
               normalizeWhitespace: false,
               xmlMode: false
           },
           length: 1,
           _root: [Circular]
       }
    }
  • 相关阅读:
    MySQL启动和关闭命令总结
    MySQL数据库5.6版本首次安装Root密码问题
    tomcat 9性能调优注意事项
    扫除减脂之路上的几个小障碍
    MySQL常见面试题
    关于邮箱发送邮件二之附件及图片
    关于邮箱发送邮件
    关于算法
    python中常见的数据类型
    C++实现复数类的输入输出流以及+-*/的重载
  • 原文地址:https://www.cnblogs.com/jzm17173/p/4713481.html
Copyright © 2011-2022 走看看