vue
weixin_42439326
这个作者很懒,什么都没留下…
展开
-
axios封装实例
研究一段时间总结一下,各位大神指点一下https.js (axios封装的文件)import axios from 'axios'import store from './store.js'// 创建axios的一个实例const instance = axios.create({ baseURL: 'http://api.jkw.ltd/api/v1/', heade...原创 2019-08-18 19:36:02 · 279 阅读 · 0 评论 -
vuex 小结
安装npm install vuex --save引用//store.jsimport vuex from 'vuex'Vue.use(vuex);var store = new vuex.Store({//store对象 state:{ show:false }})//main.jsimport vue from 'vue'import st...原创 2019-08-18 20:33:34 · 76 阅读 · 0 评论 -
vue 引用iframe 简单实现
组件<template> <iframe ref="iframe" scrolling="auto" width="100%" height="100%" frameborder="0"></iframe></template>css解决iframe移动端 的适配问题<style> iframe { p...原创 2019-08-14 13:43:33 · 3220 阅读 · 0 评论 -
vue-route 写法总结
1.在组件里点击直接跳转(1)不带参<div @click="$router.push({path:'/course/show'})"></div>(2)带参 <div @click="$router.push({path:'/course/show/'+id})"></div>2.引用方法的形式<template> ...原创 2019-08-14 14:17:02 · 378 阅读 · 0 评论