小程序开放平台

文档中心
基础
界面
网络
数据缓存
媒体
位置
开放接口
设备
XHSML
性能
getPerformance
getEntries
getEntriesByName
getEntriesByType
getEntriesByPage
getCurrentPageEntries
mark
clearMarks
PerformanceEntry
createObserver
PerformanceObserver
文件
数据分析
画布

xhs.clearMarks

开发
>
JS API
>
性能
>
clearMarks
>
更新时间:2024-11-13 19:05:31

清空性能缓冲区中 name 为 name 的自定义性能数据。

语法

xhs.getPerformance().clearMarks(name)

参数说明

name

类型
默认值
必填
说明
string期望清除的自定义性能数据的 name

返回值

代码示例

javascript
xhs.getPerformance && xhs.getPerformance().mark("xhs");
xhs.getPerformance && xhs.getPerformance().clearMarks("xhs");


该文档是否对您有帮助?