![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
菊栋啊
这个作者很懒,什么都没留下…
展开
-
使用Babel转码 将es6转为es5
ES6的某些高级语法在浏览器环境甚至是Node.js环境中无法执行。Babel是一个广泛使用的转码器,可以将ES6代码转为ES5代码,从而在现有环境执行执行。这意味着,你可以现在就用 ES6 编写程序,而不用担心现有环境是否支持。 1、安装 Babel提供babel-cli工具,用于命令行转码。它的安装命令如下:(全局安装,) npm install -g babel-cli #查看是否安装成功 babel --version 2、初始化项目 在项目根目录下初始化项目 npm init原创 2020-12-21 09:49:39 · 374 阅读 · 0 评论 -
elementui文件上传nginx 报405错误
用的elementui做的文件上传,本地测试没任何问题,部署到liunx服务器报405错误, location /api/localStorage{ proxy_method POST; proxy_pass http://39.97.69.35:8000$request_uri; proxy_set_header user_token $http_user_token; } 其中 /api/localStorag原创 2020-12-10 19:47:22 · 853 阅读 · 1 评论 -
vue 实现多个列表倒计时
1.计算现在距离到期还有多长时间方法 function countDownFun(time) { let nowTime = new Date().getTime(); //现在时间 if (nowTime <= time) { //获取时间差 let timediff = Math.round((...原创 2020-02-06 10:19:00 · 1928 阅读 · 1 评论