摘要: html 1 <div> 2 <ul v-for="(item,index) in list" :key="index"> 3 <li> 4 {{ item.name }} 5 <ul v-for="(i,cindex) in list[index].chrildList" :key="cindex 阅读全文
posted @ 2020-05-15 11:01 小那 阅读(6353) 评论(0) 推荐(0) 编辑
摘要: 一、app.vue 利用v-if可以刷新页面的属性,同时使用provide和inject将祖先节点的数据传递给子代节点 <template> <div id="app"> <router-view v-if="isShow"></router-view> //① </div> </template> 阅读全文
posted @ 2020-05-14 17:23 小那 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: 1、npm run build打包,dist的index是空白页 问题一:assetsPublicPath配置错误 解决方法:修改config/index.js文件 问题二:路由history模式配置有误 export default new Router({ // mode: 'history', 阅读全文
posted @ 2020-05-13 16:03 小那 阅读(2752) 评论(0) 推荐(0) 编辑
摘要: 方法: //生成随机字符串function randomString(len) { len = len || 32; /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/ var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprst 阅读全文
posted @ 2020-05-11 18:05 小那 阅读(842) 评论(0) 推荐(0) 编辑
摘要: 方法1: html: <div v-if='imgsback.length>0' class="flex"> <div class="img-box" v-for="(item, i) in imgsback" :key='i' > <img class="img" :src="item" alt= 阅读全文
posted @ 2020-05-11 18:03 小那 阅读(7995) 评论(4) 推荐(1) 编辑
摘要: 1、下载cos-js-sdk-v5.js 下载地址:https://gitee.com/hxnamei/codes/b492wkvnher15p6xyz0q887 2、引入cos-js-sdk-v5.js文件 import COS from '../../../public/jslib/cos-js 阅读全文
posted @ 2020-05-11 16:06 小那 阅读(3053) 评论(0) 推荐(0) 编辑
摘要: localStorage.getItem('ip'); //ip地址 window.location.href; //url 阅读全文
posted @ 2020-05-11 14:08 小那 阅读(218) 评论(0) 推荐(0) 编辑
摘要: <head> </head> <body> </body> <script> var RTCPeerConnection = /*window.RTCPeerConnection ||*/ window.webkitRTCPeerConnection || window.mozRTCPeerConn 阅读全文
posted @ 2020-05-11 14:05 小那 阅读(526) 评论(0) 推荐(0) 编辑
摘要: this.$refs.table.resetFields(); //table是表单的名称 例子: html <el-form :rules="rules" ref="formLabelAlign" :label-position="labelPosition" label-width="120px 阅读全文
posted @ 2020-05-11 10:46 小那 阅读(4054) 评论(0) 推荐(0) 编辑
摘要: <meta content="width=device-width, height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"> <m 阅读全文
posted @ 2020-05-11 10:39 小那 阅读(449) 评论(0) 推荐(0) 编辑