Skip to content

删除cookie ​

方法名 ​

removeCookie

用法 ​

示例 ​

js
this.$refs.refLevenUtsWebview.removeCookie({
  //名称,必须
  name: this.form.name,
  //域名,必须
  domain: this.form.domain,
  //路径,默认:/
  path: this.form.path
}, res => {
  console.log("removeCookie:" + JSON.stringify(res))
})

参数说明 ​

参数名参数类型是否必填默认值参数描述
nameString是无cookie名称
domainString是无域名
pathString否/域名路径

回调 ​

示例 ​

json
{
  "data": {},
  "message": "",
  "code": 0
}

回调说明 ​

参数名参数类型参数描述
messageString消息提示
dataObject数据对象
codeInteger返回类型,0.成功,其他:失败