上一页 1 2 3 4 5 6 7 8 ··· 22 下一页
摘要: 1.安装 npm install animate.css@3.7.2 --save 2.引入 main.js中: import animated from 'animate.css' Vue.use(animated) 3.使用 vue文件中: <!-- 直接使用animated中的动画class名 阅读全文
posted @ 2021-04-09 14:24 氧化成风 阅读(316) 评论(0) 推荐(0)
摘要: 1.全局安装server npm install -g server 2.全局安装 http-server npm install http-server -g 3.执行http-server命令 如果想更改端口号: 执行命令:http-server -a 0.0.0.0 -p 8000 阅读全文
posted @ 2021-04-07 09:14 氧化成风 阅读(238) 评论(0) 推荐(0)
摘要: 1.需要引入echart.js以及chain.js <script type="text/javascript" src="js/echarts.min.js"></script><script type="text/javascript" src="js/china.js"></script> h 阅读全文
posted @ 2021-04-06 17:11 氧化成风 阅读(237) 评论(0) 推荐(0)
摘要: npm install echarts --save 如果安装失败可以通过淘宝镜像进行安装依赖包 cnpm install echarts --save 引入后提示import有问题,需要将echarts版本降到5以下的,改为4.9.0之后显示没有问题了 将echart封装成组件: chartLin 阅读全文
posted @ 2021-04-02 14:32 氧化成风 阅读(204) 评论(0) 推荐(0)
摘要: 前端请求时header中设置 contentType : ‘application/json’。 wx.request({ url: 'http://localhost:8080/send/add2', method:'POST', header: { "Content-Type": "applic 阅读全文
posted @ 2021-04-01 15:24 氧化成风 阅读(1377) 评论(0) 推荐(0)
摘要: Lodash入门使用介绍: 安装:npm install lodash 使用:main.js中引入 import _ from 'lodash';// 导入loadsh Vue.prototype.$lodash = _;//注入工具 方法: 1.times()循环 //js原生的循环方法 for 阅读全文
posted @ 2021-03-31 10:56 氧化成风 阅读(1049) 评论(0) 推荐(0)
摘要: 初识vue3 composition API 1.createApp 创建一个APP实例 // 先导入createApp模块 import { createApp } from 'vue'; import App from './App.vue'; // 使用createApp方法将我们的入口文件放 阅读全文
posted @ 2021-03-26 14:32 氧化成风 阅读(135) 评论(0) 推荐(0)
摘要: https://segmentfault.com/a/1190000018874254 阅读全文
posted @ 2021-03-12 11:44 氧化成风 阅读(25) 评论(0) 推荐(0)
摘要: 支持浏览器和node.js支持promise能拦截请求和响应能转换请求和响应数据能取消请求自动转换JSON数据浏览器端支持防止CSRF(跨站请求伪造) 阅读全文
posted @ 2021-03-12 09:54 氧化成风 阅读(111) 评论(0) 推荐(0)
摘要: getCanvasInfo(){ var url = this.$refs.canvas.toDataURL("image/png"); this.$emit("getCanvasUrl", url); }, getCanvasData(url){ var image = document.crea 阅读全文
posted @ 2021-03-11 10:47 氧化成风 阅读(2306) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 22 下一页