performance.clearResourceTimings([name])
版本历史
| 版本 | 变更 |
|---|---|
| v19.0.0 | 必须使用 |
| v18.2.0, v16.17.0 | 新增于: v18.2.0, v16.17.0 |
name<string>
如果未提供 name,则从资源时间线中删除所有 PerformanceResourceTiming 对象。如果提供了 name,则只删除指定的资源。
\If name is not provided, removes all PerformanceResourceTiming objects from
the Resource Timeline. If name is provided, removes only the named resource.