摘要: 1.cooks: 2请求头部: 1.js 2.vue 3.localStorage 有道词典 9 if (document. ... 详细X 9如果(document.cookie.length > 0) 10 { 11 var c_start =。。indexOf(c_name + " = ") 阅读全文
posted @ 2018-12-28 17:29 Breakpattert_阿涛 阅读(135) 评论(0) 推荐(0)
摘要: 创建api.js ,request.js api.js:举例 request.js:api表单 在html页面调用 vue.js或jq 阅读全文
posted @ 2018-12-28 16:45 Breakpattert_阿涛 阅读(253) 评论(0) 推荐(0)
摘要: 创建文件:api.js fetch.js cart.js xxxx.vue api.js:api表和域名的切换 fetch.js:处理报错 cart.js:局部对应的某个模块的请求 导入fetch.js api.js 阅读全文
posted @ 2018-12-28 16:35 Breakpattert_阿涛 阅读(301) 评论(0) 推荐(0)
摘要: data:{ isLeftHiden:false, }, methods:{ togglemobileauto(ismobile){ this.isLeftHiden = ismobile }, }, beforeMount () { const {body} = document const WI 阅读全文
posted @ 2018-12-28 16:09 Breakpattert_阿涛 阅读(315) 评论(0) 推荐(0)
摘要: //国际化 按需导入import iView from 'iview'import VueI18n from 'vue-i18n'import zhCN from 'iview/dist/locale/zh-CN'import zhTW from 'iview/dist/locale/zh-TW'i 阅读全文
posted @ 2018-12-28 14:24 Breakpattert_阿涛 阅读(532) 评论(0) 推荐(0)