Puppeteer 中文文档v25.8.0

HTTPResponse.ok() 方法

如果响应成功(状态码在 200-299 范围内),则为 true。

签名

class HTTPResponse {
  ok(): boolean;
}

返回值:

boolean