摘要: 缓动公式 效果: Linear:无缓动效果 Quadratic:二次方的缓动(t^2) Cubic:三次方的缓动(t^3) Quartic:四次方的缓动(t^4) Quintic:五次方的缓动(t^5) Sinusoidal:正弦曲线的缓动(sin(t)) Exponential:指数曲线的缓动(2 阅读全文
posted @ 2020-12-15 11:34 涛啊声依旧 阅读(553) 评论(0) 推荐(0) 编辑
摘要: document.body.clientWidth; // BODY对象宽度 document.body.clientHeight; // BODY对象高度 document.documentElement.clientWidth; // 可见区域宽度 document.documentElemen 阅读全文
posted @ 2020-12-15 11:21 涛啊声依旧 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 问题描述 axios.post()请求,返回500 查阅资料后得知是form Data 和 Request payload的问题,二者的格式不同,处理方式不同 axios.post(url, {})直接传参用的是Request payload的方式发送参数,而后端以form Data的方式处理参数, 阅读全文
posted @ 2020-12-15 11:07 涛啊声依旧 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 报错内容:重复路由 解决方案: // router/index.js const originalPush = Router.prototype.push Router.prototype.push = function push(location) { return originalPush.ca 阅读全文
posted @ 2020-12-14 17:07 涛啊声依旧 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 隐藏上下箭头 <style> input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{ -webkit-appearance:textfield; } input[type="number"]{ -moz-appearanc 阅读全文
posted @ 2020-12-14 17:02 涛啊声依旧 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 安装扩展 npm i vue-awesome-mui -S 引入 // main.js中引入'vue-awesome-mui' import Mui from 'vue-awesome-mui'; Vue.config.productionTip = false Vue.use(Mui); 使用 < 阅读全文
posted @ 2020-12-14 16:53 涛啊声依旧 阅读(2790) 评论(2) 推荐(0) 编辑
摘要: <script> export default { data() { return { version: "2.0.5", }; }, methods: { // 下载wgt文件 downWgt(wgtUrl) { const that = this; plus.nativeUI.showWaiti 阅读全文
posted @ 2020-12-14 16:42 涛啊声依旧 阅读(582) 评论(0) 推荐(0) 编辑
摘要: plus.runtime.version 阅读全文
posted @ 2020-12-14 16:38 涛啊声依旧 阅读(5113) 评论(0) 推荐(0) 编辑
摘要: uni-app热更新仅仅是更新资源,不会修改应用信息,所以版本号是不会改变的 解决方案 可以在代码中用常量储存一个资源版本(Res V2.0.0)用于热更新检测 阅读全文
posted @ 2020-12-14 16:25 涛啊声依旧 阅读(1738) 评论(0) 推荐(0) 编辑
摘要: 以Win10为例: 右击桌面->个性化->选择图片模块->右击图片->为监视器*设置 如果图片列表中没有想要的图片,可以浏览,现将想要的图片设置为背景,这张图片就会出现在图片列表中,然后通过上一条的方法设置 阅读全文
posted @ 2020-12-14 16:19 涛啊声依旧 阅读(381) 评论(0) 推荐(0) 编辑