Vue
小蔡来了
写的是我个人学习时的总结和学习过程的思路,代码质量有待提高,希望共同进步。
展开
-
vue-cli去掉警告信息
vue-cli去掉警告信息注释掉下图43行原创 2021-04-01 22:32:52 · 681 阅读 · 0 评论 -
vue中使用官网的animate.css
vue中使用官网的animate.css第一步cmd中安装$ npm install animate.css --save第二步main.js中导入import animate from “animate.css”;第三步,在需要的地方使用下方代码一定要加animate__animated类 <transition name="custom-classes-transition" enter-active-class="animate__animated animate__ba原创 2021-03-21 17:17:09 · 911 阅读 · 0 评论 -
vue的axios跨域问题
vue的axios跨域问题第一步:在vue-cli的config/index.js下找到proxyTable,里面加上下面的代码 proxyTable: { '/api': { target: 'https://api.topthink.com', //设置你调用的接口域名和端口号 别忘了加http changeOrigin: true, pathRewrite: { '^/api': '' //这里理解成用‘/api原创 2021-03-20 23:21:22 · 103 阅读 · 0 评论 -
Vue的axios-post的使用
Vue的axios-post的使用/* post方法1 */axios({ url: '/api/joke/latest', params: { appCode: 'xxx', pagesize: 10, }, methods: 'post',}).then(res => { console.log(res); console.log("post成功")}).catch(err => { console.log(err); console.原创 2021-03-20 23:16:04 · 1489 阅读 · 0 评论 -
vue中的axios-get的使用
vue中的axios-get的使用在main.js中引入import axios from 'axios'/* get方法 显示说明methods*/// 法1,then,catchaxios({ url: '/api/news/toutiao?appCode=XXX', methods: 'get',}).then(res => { console.log(res); console.log("get成功")}).catch(err => { consol原创 2021-03-20 23:13:00 · 1338 阅读 · 0 评论 -
vue中使用swipter遇到的问题,autoplay自动切换,和分页等无效
vue中使用swipter遇到的问题原创 2021-03-20 22:54:42 · 790 阅读 · 0 评论