上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页
摘要: 在表单验证的时候报错 添加一个日期控件,但是发现在表单验证中遇到了冲突如下: Error in event handler for "el.form.change": "TypeError: value.getTime is not a function" elementUI的日期选择器【el-da 阅读全文
posted @ 2021-02-03 16:55 何以平天下 阅读(4856) 评论(0) 推荐(0)
摘要: 个人觉得电脑端的用transform好,毕竟电脑端的项目基本都会固定屏幕比列,16:9、28:9、32:9的 一个固定的设计稿就能很好的适配。 移动端用rem比较好,移动端的屏幕比列太杂,使用rem自适应更好 以上是个人看法 阅读全文
posted @ 2020-12-19 09:52 何以平天下 阅读(239) 评论(0) 推荐(0)
摘要: 1.subtract方法,时间加减处理 console.log(moment().format("YYYY-MM-DD HH:mm:ss")); //当前时间 console.log(moment().subtract(10, "days").format("YYYY-MM-DD")); //当前时 阅读全文
posted @ 2020-12-14 13:48 何以平天下 阅读(1129) 评论(0) 推荐(0)
摘要: 可以使用setNavigationBarTitle方法动态设置页面标题 wx.setNavigationBarTitle({ title: options.name, }) 阅读全文
posted @ 2020-11-30 16:53 何以平天下 阅读(1340) 评论(0) 推荐(0)
摘要: 服务器是 Windows Server 2008 R2 Enterprise 网上找了很多说是修改webconfig。试过之后没有效果,另外报错了。 最后才找到是因为webapi发布时选择的应用程序的.net2.0的 应该选.net4.0的,才能正常的显示。 阅读全文
posted @ 2020-11-24 15:23 何以平天下 阅读(481) 评论(0) 推荐(0)
摘要: 有可能是因为子组件方法用了 async await 子组件去掉async就好了 阅读全文
posted @ 2020-11-20 16:01 何以平天下 阅读(624) 评论(0) 推荐(0)
摘要: 在axisLabel中设置刻度间隔interval,再加上强制显示最大值showMaxLabel和最小值showMinLabel axisLabel: {//X轴文字 interval: day == 7 ? 0 : 3, showMinLabel: true, showMaxLabel: true 阅读全文
posted @ 2020-11-12 11:42 何以平天下 阅读(5984) 评论(2) 推荐(0)
摘要: 原因: 在echarts图表中出现tooltip时,画布的父标签(即:echarts.init()的标签)的有时宽高都会发生变化,导致相对布局的div可能大小发生变化(画布大小却不变),导致页面闪动。 解决方法 : 在该画布的父标签(即:echarts.init()的标签)外层套一个div,设置ov 阅读全文
posted @ 2020-10-28 11:44 何以平天下 阅读(1415) 评论(2) 推荐(2)
摘要: 1. concat() 方法 concat() 方法用于连接两个或多个数组 var arr = new Array(3) arr[0] = "George" arr[1] = "John" arr[2] = "Thomas" var arr2 = new Array(3) arr2[0] = "Ja 阅读全文
posted @ 2020-10-27 15:28 何以平天下 阅读(4374) 评论(0) 推荐(0)
摘要: 1.安装echarts依赖npm install echarts --save 2.在要使用的页面引入import echarts from 'echarts'v5之后使用 import * echarts from 'echarts' 3.使用时在mounted中使用 //此时页面上的元素已经被渲 阅读全文
posted @ 2020-10-23 13:13 何以平天下 阅读(299) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 21 下一页