vue
ky与你
目标就是能做出任何自己想要的东西
展开
-
ElementUI el-time-picker DatePicker 日期选择器 显示到分钟不显示秒
format是格式化显示出来的样子,HH:mm只显示小时和分钟原创 2018-01-12 18:42:34 · 42881 阅读 · 0 评论 -
npm安装webpack,前端工程中axios is not defined解决办法
根本不明白为什么这么写,但是下面这么写axios就可以用了,望大神解答 vue.use(),和new vue()还有Vue.prototype的区别各是什么,如何在前端工程中正确的使用 axios,如果用引入js文件的方式,在页面直接使用axios就可以,但为什么用前端工程安装的方式就不可以呢,就会出现 axios 找不到的情况转自http://www.cnblogs.com/转载 2018-01-25 11:07:39 · 20471 阅读 · 0 评论 -
vue如何在遍历时根据索引判断样式
<img v-for="(img,index) in item.imgs" :style="{marginLeft:index==0?'0':'5px'}" :src="'img/'+img.imgSrc" :alt="index"/>原创 2018-04-06 18:29:05 · 4221 阅读 · 0 评论 -
vue+springboot2.0前后端分离项目传输cookie,获取cookie,返回cookie
上代码:前端vue:<!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"&a原创 2018-08-23 10:21:54 · 11079 阅读 · 1 评论 -
vue-cli3 typescript Uncaught TypeError: Cannot set property 'components' of undefined
vue-cli3 typescript 原因是@Component({}) export default class Child extends Vue {上面没有加@Component({})导致的,加上 @Component({})就好了Uncaught TypeError: Cannot set property 'components'...原创 2019-01-01 12:18:10 · 1910 阅读 · 0 评论