会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
那小白踩坑路
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
20
21
22
23
24
25
下一页
2020年5月15日
v-for实现双层循环嵌套
摘要: 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 小那
阅读(6448)
评论(0)
推荐(0)
2020年5月14日
通过v-if的功能触发页面刷新,结合provide和inject(reload)
摘要: 一、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 小那
阅读(1367)
评论(0)
推荐(0)
2020年5月13日
npm run build打包遇到的问题
摘要: 1、npm run build打包,dist的index是空白页 问题一:assetsPublicPath配置错误 解决方法:修改config/index.js文件 问题二:路由history模式配置有误 export default new Router({ // mode: 'history',
阅读全文
posted @ 2020-05-13 16:03 小那
阅读(2882)
评论(0)
推荐(0)
2020年5月11日
随机生成字符串
摘要: 方法: //生成随机字符串function randomString(len) { len = len || 32; /****默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1****/ var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprst
阅读全文
posted @ 2020-05-11 18:05 小那
阅读(864)
评论(0)
推荐(0)
vue实现多张图片上传与预览
摘要: 方法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 小那
阅读(8108)
评论(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 小那
阅读(3396)
评论(0)
推荐(0)
获取ip(局域网内的IP是一样的)
摘要: localStorage.getItem('ip'); //ip地址 window.location.href; //url
阅读全文
posted @ 2020-05-11 14:08 小那
阅读(233)
评论(0)
推荐(0)
获取电脑本机的IP地址
摘要: <head> </head> <body> </body> <script> var RTCPeerConnection = /*window.RTCPeerConnection ||*/ window.webkitRTCPeerConnection || window.mozRTCPeerConn
阅读全文
posted @ 2020-05-11 14:05 小那
阅读(541)
评论(0)
推荐(0)
vue表单提交之后,清空input里的数据
摘要: this.$refs.table.resetFields(); //table是表单的名称 例子: html <el-form :rules="rules" ref="formLabelAlign" :label-position="labelPosition" label-width="120px
阅读全文
posted @ 2020-05-11 10:46 小那
阅读(4160)
评论(0)
推荐(0)
移动端mate标签基础
摘要: <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 小那
阅读(487)
评论(0)
推荐(0)
上一页
1
···
20
21
22
23
24
25
下一页
公告