请扫码查看示例
# resetCookie ^6.8
删除所有的 cookie
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
urls | Array | N/A |
# 引入接口模块
import bridge from '@minix-iot/etsbridge-sdk'
1
# 接口调用示例
const params = {
urls: ['http://baidu.com'],
}
bridge
.resetCookie(params)
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
status | Number | N/A | 0 失败 ,1 成功 |
- 失败时返回