>》>》>》>》
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: wx.setNavigationBarTitle({ title: this.dynTitle }) 通过页面路由跳转传参 onload(opt)中的opt接受传过来的title 赋值即可 阅读全文
posted @ 2019-11-20 23:57 大、锤 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: function toPercent(point,num){ if (point==0) { return 0; } var str=Number(point*100).toFixed(num); str+="%"; return str; } //point 接收的数据 //num 保留小数位 t 阅读全文
posted @ 2019-11-17 11:24 大、锤 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 大佬链接: https://juejin.im/post/5b55c118f265da0f6f1aa354 一、axios的封装 在vue项目中,和后台交互获取数据这块,我们通常使用的是axios库,它是基于promise的http库,可运行在浏览器端和node.js中。他有很多优秀的特性,例如拦截 阅读全文
posted @ 2019-11-16 17:46 大、锤 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 先安装引入 import ElementUI from 'element-ui' import { Loading } from 'element-ui' 在vue的原型链上定义一个打开loading的方法 Vue.prototype.openLoading = function() { const 阅读全文
posted @ 2019-11-16 17:17 大、锤 阅读(14507) 评论(0) 推荐(0) 编辑
摘要: 官方的 <template> <el-button :plain="true" @click="open2">成功</el-button> <el-button :plain="true" @click="open3">警告</el-button> <el-button :plain="true" 阅读全文
posted @ 2019-11-16 16:18 大、锤 阅读(1444) 评论(1) 推荐(0) 编辑
摘要: 掩藏scroll滚动条::-webkit-scrollbar ::-webkit-scrollbar {} /* 1 */ ::-webkit-scrollbar-button {} /* 2 */ ::-webkit-scrollbar-track {} /* 3 */ ::-webkit-scr 阅读全文
posted @ 2019-11-16 15:10 大、锤 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 当出现纵向滚动条的时候就错位了 网上找了很多方法发现对我的不生效 //把这样式添加到index.html中、或者app.vue中(必须是入口文件,才能全局起作用!)body .el-table th.gutter{ display: table-cell!important; } body .el- 阅读全文
posted @ 2019-11-16 11:22 大、锤 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 回调函数和闭包 回调函数,官方解释:当程序跑起来时,应用程序会时常通过API调用库里预先备好的函数。但是有些库函数却要求应用先传给他一个函数,好在合适的时候调用,以完成目标任务。这个被传入、后又被调用的函数被称为回调函数。简单的说,回调就是回溯,先定义好将要使用的函数体,然后使用时再调用这个函数,通 阅读全文
posted @ 2019-11-15 22:28 大、锤 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 检查检查是不是加了scoped 在vue中,我们需要引用子组件,包括ui组件(element、iview)。 但是在父组件中添加scoped之后,在父组件中书写子组件的样式是无效果的。 去掉scoped之后,样式可以覆盖。但这样会污染全局样式,为了解决这个问题 我是在引用的组件外面加个id选择器 阅读全文
posted @ 2019-11-15 11:00 大、锤 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: 1、first-child first-child表示选择列表中的第一个标签。代码如下: li:first-child{background:#090} 上面的意思是,li 列表中的 第一个li模块的背景颜色。 2、last-child last-child表示选择列表中的最后一个标签,代码如下: 阅读全文
posted @ 2019-11-14 16:40 大、锤 阅读(150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页