For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/react/testing-library/接口/PrettyDOMOptions.md.
Lynx
  • 简体中文
    • English
  • 接口: PrettyDOMOptions

    继承

    属性

    callToJSON?

    optional callToJSON?: boolean

    继承自

    prettyFormat.OptionsReceived.callToJSON


    compareKeys?

    optional compareKeys?: CompareKeys

    继承自

    prettyFormat.OptionsReceived.compareKeys


    escapeRegex?

    optional escapeRegex?: boolean

    继承自

    prettyFormat.OptionsReceived.escapeRegex


    escapeString?

    optional escapeString?: boolean

    继承自

    prettyFormat.OptionsReceived.escapeString


    filterNode?

    optional filterNode?: (node: Node) => boolean

    传入一个 Node,返回 false 表示在输出中忽略该节点。 默认忽略 <style />、<script /> 和注释节点。

    参数

    参数类型
    nodeNode

    返回

    boolean


    highlight?

    optional highlight?: boolean

    继承自

    prettyFormat.OptionsReceived.highlight


    indent?

    optional indent?: number

    继承自

    prettyFormat.OptionsReceived.indent


    maxDepth?

    optional maxDepth?: number

    继承自

    prettyFormat.OptionsReceived.maxDepth


    min?

    optional min?: boolean

    继承自

    prettyFormat.OptionsReceived.min


    plugins?

    optional plugins?: Plugins

    继承自

    prettyFormat.OptionsReceived.plugins


    printBasicPrototype?

    optional printBasicPrototype?: boolean

    继承自

    prettyFormat.OptionsReceived.printBasicPrototype


    printFunctionName?

    optional printFunctionName?: boolean

    继承自

    prettyFormat.OptionsReceived.printFunctionName


    theme?

    optional theme?: ThemeReceived

    继承自

    prettyFormat.OptionsReceived.theme

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。