resetCookie 删除所有的 cookie

resetCookie ^6.8

删除所有的 cookie

#请求参数

Prop Type Default Comment
urls Array N/A

#引入接口模块

import bridge from '@minix-iot/etsbridge-sdk'

#接口调用示例

const params = {
  urls: ['http://baidu.com'],
}
bridge
  .resetCookie(params)
  .then((res) => {
    console.log(res)
  })
  .catch((err) => {
    console.log(err)
  })

#返回参数

  • 成功时返回
Prop Type Default Description
status Number N/A 0 失败 ,1 成功
  • 失败时返回
posted on 2024-12-28 16:36  AtlasLapetos  阅读(0)  评论(0)    收藏  举报