小程序开放平台

文档中心
暂无目录

xhs.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");


该文档是否对您有帮助?