摘要: cookie 服务器端返回数据的时候,通过Set-Cookie这个头设置一些内容,浏览器接收到数据后会将这些内容保存起来,在下次同域的请求中,浏览器会带上之前保存的内容。服务器通过对这个内容的比较,分辨是哪个用户请求数据。 a.通过Set-Cookie设置 b.下次请求会自动带上 c.键值对,可以设 阅读全文
posted @ 2020-02-23 18:12 ladybug7 阅读(105) 评论(0) 推荐(0) 编辑
摘要: [vuex] do not mutate vuex store state outside mutation handlers. import * as types from './mutation-types' import {playMode} from 'common/js/config' i 阅读全文
posted @ 2020-02-23 09:35 ladybug7 阅读(486) 评论(0) 推荐(0) 编辑