# PerformanceObserver.observe(Object options)

基础库 2.11.0 开始支持,低版本需做兼容处理

小程序插件:不支持

# 功能描述

开始监听

# 参数

# Object options

设置 type 监听单个类型的指标,设置 entryTypes 监听多个类型指标。

属性 类型 默认值 必填 说明
type string 指标类型。不能和 entryTypes 同时使用
合法值 说明
navigation 路由
render 渲染
script 脚本
entryTypes Array.<string> 指标类型列表。不能和 type 同时使用。