07 2020 档案
摘要:uni-app产生的背景: 多端泛滥、体验不好。 特征:Vue的语法、微信小程序的api、内嵌mpvue。 通用的技术栈,学习成本更低。 开放的生态、组件更丰富。 支持通过npm安装第三方包。 支持微信小程序自定义组件及SDK 兼容mpvue组件及项目 App端支持和原生混合编码 DCloud将发布
阅读全文
摘要:https://www.cnblogs.com/zhangjixiao/p/13345755.html
阅读全文
摘要:https://www.dcloud.io/hbuilderx.html https://dev.dcloud.net.cn/user/profile 验证账号:
阅读全文
摘要:思路: 第一步:在公共的css文件里面设置class类名,并添加要修改得样式。 第二步:在要修改控制的组件里,生命周期mounted中给要修改样式的DOM添加class类名。(此步可能涉及到异步。) 具体实现:common.css
阅读全文
摘要:控制台输出。fetch("https://m.jiahuaduola.com/api/app/json",{ method:"POST", headers:{'content-type': 'application/json'}, mode: 'cors', body:JSON.stringify(
阅读全文
摘要:第一次搜索查询到多页数据,此时点击第二页数据(举例,非第一页),再次改变搜索条件,查询到多页数据时,此时分页的页号显示还是上次查询的页数 第二页。但是实际上第二次查询是第一页的数据,此时并没没有更新分页组件的当前页数。 此bug是element UI分页组件的bug。 解决思路是当点击查询的时候,再
阅读全文
摘要:function getBase64 (file) { return new Promise(function (resolve, reject) { let reader = new FileReader() let imgResult = '' reader.readAsDataURL(file
阅读全文
摘要:import Vue from 'vue' import axios from 'axios' Vue.prototype.$download = function download(url,param) { axios.get(url, { responseType: 'blob', params
阅读全文
摘要:第一步:开启表格的高亮显示配置属性。highlight-current-row 第二步:全局引入css /* 用来设置当前页面element全局table 选中某行时的背景色*/ .container .el-table__body tr.current-row>td{ background-col
阅读全文
摘要:.ms-title { width: 200px; line-height: 50px; text-align: center; font-size: 20px; color: #fff; margin:0 auto; background-image: -webkit-linear-gradien
阅读全文
摘要:解决方法:安装 "babel-polyfill" 1、命令:cnpm install --save-dev babel-polyfill 2、在入口main.js文件引入:import 'babel-polyfill',放页面顶部最好。 3、在build文件夹下找到webpack.base.conf
阅读全文
摘要:var str = '2016060520103600466'; var str=str.replace(/\s/g,'').replace(/(.{4})/g,"$1 ");
阅读全文
摘要:公共样式添加样式。 状态添加。。。。
阅读全文
摘要:chenkHandle(row){ //原页打开 // this.$router.push({path:'/duocai/detail',query:{ checkType:row.id,role:"manger"}}); //新开页 let newUrl = this.$router.resolv
阅读全文
摘要:<!--日期start--> <el-form-item label="提交时间:"> <div class="block"> <!-- <span class="demonstration"></span> --> <el-date-picker value-format="yyyy-MM-dd"
阅读全文
摘要:解决办法: 前面拼上http://
阅读全文
摘要:.el-table{ /deep/ td{ text-align: center; } } 表格居中显示。 表头居中显示。 表头border不显示,找到th 设置 0.5px solid .... //修改表格边框颜色 .requireList{ /deep/ .el-table td, .el-t
阅读全文
摘要:var star='2019-2-26'//date1:小日期 对比时间日期 var end='2019-3-5'//date2:大日期 当前日期 function DateMinus(date1,date2){ var sdate = new Date(date1); var now = new
阅读全文
摘要:Message组件引入。 不能用Vue.use(Message) 这样不能,调用组件。并且没进页面都会有 弹框。 解决方法: 通过加载组件的方式引入即可 把 Vue.use(Message) 改为 Vue.prototype.$message = Message 或 Vue.component(Me
阅读全文