摘要:
所有的要用到全局的比如说 vue 、router、初始页面app 、 ElementUI。。。。 都需要导入和定义 阅读全文
posted @ 2019-02-21 15:57
我就是要叫鱼摆摆
阅读(947)
评论(0)
推荐(0)
摘要:
export function formatDate(date,fmt){ if (/(y+)/.test(fmt)) { fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length)); } 阅读全文
posted @ 2019-02-21 15:26
我就是要叫鱼摆摆
阅读(287)
评论(0)
推荐(0)
摘要:
封装的router 要在main.js里面导入 import router from './router' 1.先要在component里面新建 xxx.vue 2.在router文件夹里的js import xxx from ‘@/component/xxx' Vue.use(Router); e 阅读全文
posted @ 2019-02-21 15:18
我就是要叫鱼摆摆
阅读(459)
评论(0)
推荐(0)
摘要:
Vue.prototype.$post=post;Vue.prototype.$get=get;Vue.prototype.$delete=del;Vue.prototype.$patch=patch; 阅读全文
posted @ 2019-02-21 13:57
我就是要叫鱼摆摆
阅读(1669)
评论(0)
推荐(0)
摘要:
template: <div @click="up"> <span :class="{colors:isactive false }" v-if="isactive false" >上线</span> <span :class="{colors2:isactive true}" v-if="isac 阅读全文
posted @ 2019-02-21 13:54
我就是要叫鱼摆摆
阅读(1900)
评论(0)
推荐(0)

浙公网安备 33010602011771号