liAnran

博客园 首页 新随笔 联系 订阅 管理

2019年8月22日 #

摘要: var vm = null, cateNature = [ { "attrId": "592e95a2e820cc1813f0ba4e", "isMultiple": 1, "seq": 0, "isEnum": 1, "attrName": "热门游戏", "isMustInput": 0, "i 阅读全文
posted @ 2019-08-22 17:24 liAnran 阅读(2283) 评论(0) 推荐(1) 编辑

摘要: 通过this.$forceUpdate() 可以解决这个问题: 虽然问题解决了,但是并不知道为什么出现这样的情况。 阅读全文
posted @ 2019-08-22 17:16 liAnran 阅读(924) 评论(0) 推荐(0) 编辑

2019年7月19日 #

摘要: 问题描述: 项目运行时一直发送http://localhost:8080/sockjs-node/info?t=1462183700002请求 问题原因: 首先sockjs-node是一个JavaScript库,提供跨浏览器JavaScript的API,创建了一个低延迟,全双工的浏览器和web服务器 阅读全文
posted @ 2019-07-19 16:23 liAnran 阅读(1165) 评论(0) 推荐(0) 编辑

摘要: beforeAvatarUpload(file) { const isLt3M = file.size / 1024 / 1024 < 3; if (!isLt3M) { this.$message.error("上传宝贝详情图片大小不能超过 3MB!"); } let _this = this; 阅读全文
posted @ 2019-07-19 16:18 liAnran 阅读(4233) 评论(0) 推荐(0) 编辑

2019年7月15日 #

摘要: 1.mint-ui设置图标icon 1.https://www.iconfont.cn/随便找几个图标加入购物车,然后下载代码。 2.下载的文件叫download.zip,解压后有很多文件css、eot、svg、ttf、woff、woff2、js,将文件复制到项目所在目录,我是vue项目,我复制到s 阅读全文
posted @ 2019-07-15 11:28 liAnran 阅读(836) 评论(0) 推荐(0) 编辑

2019年5月30日 #

摘要: html: <el-form-item label="所属分类" prop="speconeclass"> <el-select v-model="topform.speconeclass" size="mini" placeholder="请选择一级分类"> <el-option v-for="i 阅读全文
posted @ 2019-05-30 18:03 liAnran 阅读(629) 评论(0) 推荐(0) 编辑

2019年3月1日 #

摘要: Q1:获取到id 显示 title 回传id? Q2:element-ui之table 选择框禁用 var Main = { data() { return { tableData: [{ date: '2018', name: '小海', address: '上海市' }, { date: '20 阅读全文
posted @ 2019-03-01 18:21 liAnran 阅读(1265) 评论(0) 推荐(0) 编辑

2019年1月29日 #

摘要: 有时候你的echarts可能出现了未定义等问题。快来再lv一遍~ 一、安装插件 使用 cnpm 安装 Echarts cnpm install echarts -S 和之前介绍的 axios 类似,echarts 也不能通过 Vue.use() 进行全局调用 通常是在需要使用图表的 .vue 文件中 阅读全文
posted @ 2019-01-29 17:13 liAnran 阅读(535) 评论(1) 推荐(0) 编辑

摘要: 五 .下面 截取一下廖雪峰官网的多人协作工作模式: 多人协作的工作模式通常是这样: 首先,可以试图用git push origin <branch-name>推送自己的修改; 如果推送失败,则因为远程分支比你的本地更新,需要先用git pull试图合并; 如果合并有冲突,则解决冲突,并在本地提交; 阅读全文
posted @ 2019-01-29 13:56 liAnran 阅读(255) 评论(0) 推荐(0) 编辑

2019年1月25日 #

摘要: 方法一:正则法 : function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match( 阅读全文
posted @ 2019-01-25 16:33 liAnran 阅读(582) 评论(0) 推荐(0) 编辑