09 2018 档案
摘要:1.npm install better-scroll 2.引入:import BetterScrol from 'better-scroll' 3. 在需要设置页面滚动的地方添加 ref="xxx" 用来操作dom 4.定义方法: 5.在请求数据完成之后调用该方法 3. 在需要设置页面滚动的地方添
阅读全文
摘要:.GoodList{ display :table; height :54px; width :56px; line-height: 14px padding: 0 12px .text{ display: table-cell; width: 56px; vertical-align: middl
阅读全文
摘要:.brand { display: inline-block; width: 30px; height: 18px; background-image: url('../../../resource/img/brand@2x.png'); @media (-webkit-min-device-pix
阅读全文
摘要:Axios 封装使用 htttp.js import axios from 'axios'; import { Message } from 'element-ui'; axios.defaults.timeout = 5000; axios.defaults.baseURL =''; //http
阅读全文
摘要:this.$router.push({name:"Home",query:{id:1,name:2}}) // 取到路由带过来的参数 let routerParams = this.$route.query.id;
阅读全文
摘要:项目初始化git:git init 连接请求git:git remote add origin https://gitee.com/LHJ0315/AAA.git 更改远程路径:git remote set-url origin https://gitee.com/LHJ0315/AAA.git 强
阅读全文
摘要:1.下载Font Class类型的到本地2.把iconfont.css iconfont.eot iconfont.svg iconfont.ttf iconfont.woff 这几个文件复制到vue项目中的src的新建的icon目录下3.在main.js中引入 import "./icon/ico
阅读全文
摘要:vue-cli项目安装使用stylus步骤:1. npm install stylus -D命令,在项目内安装stylus。(注意:命令结尾 -D 即是 --save-dev 的简写形式) 2.需要安装loader,通过 npm install stylus-loader css-loader st
阅读全文
摘要:使用vue-preview做图片缩率图1.安装 npm i vue-preview -S2.如果使用vue-cli生成的项目,需要修改webpack.base.conf.js文件中的loaders,添加一个loader{ test:/vue-preview.src.*?js$/, loader:'b
阅读全文
摘要:import Vuex from 'vuex' //引入Vue.use(Vuex) //加载到Vue中//创建一个数据存储对象var store=new Vuex.Store({ //state可以当做vue中的data,专门用来存储数据 state:{ counter:0 }, //用来操作sta
阅读全文
摘要:.arrows { display :block; text-align: center; position: relative; margin-top :-9px; margin-left :33px; width: 5px; height: 5px; border-top: 2px solid
阅读全文
摘要:Array.length 返回或设置一个数组中的元素个数 设置 length 属性的值来截断任何数组 Array.from() : 对伪数组或可迭代对象(包括arguments Array,Map,Set,String…)转换成数组对象 语法 Array.from(arrayLike, mapFn,
阅读全文
摘要:AbpSession定义了几个关键属性: UserId:当前用户的Id或空(如果没有当前用户),如果调用需要授权的代码,它就不能为空。 TenantId:当前租户的Id或空(如果没有当前租户:尚未登录或是个宿主用户)。 ImpersonatorUserId:模拟用户的Id(如果其它用户模拟当前会话)
阅读全文