npm cookie

  作者:chrispy

npm install vue-cookies --saveimport VueCookies from 'vue-cookies'Vue.use(VueCookies)this.$cookies.set(keyName, value[, expireTimes[, path[, domain[, secure]]]]) //return thisthis.$cookies.get(keyName) // return valuethis.$cooki

npm install vue-cookies --save

import VueCookies from 'vue-cookies'

Vue.use(VueCookies)

this.$cookies.set(keyName, value[, expireTimes[, path[, domain[, secure]]]])   //return this

this.$cookies.get(keyName)       // return value

this.$cookies.remove(keyName [, path [, domain]])

this.$cookies.isKey(keyName)        // return false or true

this.$cookies.keys()  // return a array


有用  |  无用

猜你喜欢