会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
偏执狂傲
博客园
首页
新随笔
联系
订阅
管理
2022年5月13日
gitlab克隆报错:remote: HTTP Basic: Access denied;remote: You must use a personal access token with ‘api’ scope for Git over HTTP.
摘要: 错误: remote: HTTP Basic: Access denied remote: You must use a personal access token with ‘api’ scope for Git over HTTP. remote: You can generate one at
阅读全文
posted @ 2022-05-13 14:30 偏执狂傲
阅读(1352)
评论(0)
推荐(0)
2022年3月24日
Vue中使用v-for遍历本地图片地址不正确问题解决
摘要: 编译出来后,图片地址不正确 错误代码片段 <div class="hsimg"> <img v-for="(item, index) in hsImg" :key="index" :src="item" alt="图" /> </div> data() { return { hsImg: [ "..
阅读全文
posted @ 2022-03-24 14:33 偏执狂傲
阅读(448)
评论(0)
推荐(0)
2021年11月18日
JavaScript编码转换函数的使用
摘要: decodeURIComponent("编码") 将编码进行反转义成可读字符串 encodeURIComponent("骑手管理") 将可读字符串转义成编码 decodeURL 和 encodeURL 是转义整个URI decodeURL 会将url中的所有编码转成可读字符串 encodeURL 会
阅读全文
posted @ 2021-11-18 10:57 偏执狂傲
阅读(91)
评论(0)
推荐(0)
2021年11月17日
NVM 安装node.js后没有npm
摘要: 我们在使用NVM管理工具安装一个新的node后,发现没有npm可以使用 是因为在使用NVM安装node的时候不会默认安装npm,所以需要我们自己下载后放到nvm对应的node目录下面 npm下载地址:http://npm.taobao.org/mirrors/npm/ (下载对应版本的zip文件)
阅读全文
posted @ 2021-11-17 12:08 偏执狂傲
阅读(5000)
评论(0)
推荐(0)
2021年11月16日
vue数据已经修改了,但页面未刷新
摘要: 1.watch监听到数据的变化但页面没有刷新 在数据改动的代码后加 this.$forceUpdate(); 添加this.$forceUpdate();进行强制渲染,效果实现。因为数据层次太多,render函数没有自动更新,需手动强制刷新。 2.没有监听到数据的变化 例如:改变了数组中的某一项或者
阅读全文
posted @ 2021-11-16 11:17 偏执狂傲
阅读(2639)
评论(0)
推荐(0)
2021年11月2日
js获取当前日期是一年的第几周
摘要: getWeekOnYears(val) { const year = dayjs(val).year() //获取年 const month = dayjs(val).month() + 1 //获取月 const day = dayjs(val).date() //获取天 const isLeap
阅读全文
posted @ 2021-11-02 14:52 偏执狂傲
阅读(972)
评论(0)
推荐(0)
Vue中watch用法详解
摘要: 基本用法: <div> <p>FullName: {{fullName}}</p> <p>FirstName: <input type="text" v-model="firstName"></p> </div> new Vue({ el: '#root', data: { firstName: '
阅读全文
posted @ 2021-11-02 14:24 偏执狂傲
阅读(6836)
评论(0)
推荐(0)
vue下载后端传回的二进制文件
摘要: downloadFile(file) { this.axios({ url: "/downUrl/downloadFile", //后端的下载地址 method: "post", responseType: "blob", data: { filePath: file.file_url } }).t
阅读全文
posted @ 2021-11-02 14:19 偏执狂傲
阅读(239)
评论(0)
推荐(0)
Vue的防抖(按钮,表单)
摘要: 在 utils目录下封装 debounce.js : let timeout = null function debounce(fn, wait) { if (timeout !== null) clearTimeout(timeout) timeout = setTimeout(fn, wait)
阅读全文
posted @ 2021-11-02 14:05 偏执狂傲
阅读(796)
评论(0)
推荐(0)
2021年8月3日
elementUI的树形tree组件的使用
摘要: 在模板中使用el-tree标签 给data属性绑定树形结构数据即可 <el-tree :data="treeData"></el-tree> 接着在data中编写数据 treeData: [ { label: "java", children: [] }, { label: "web", child
阅读全文
posted @ 2021-08-03 15:27 偏执狂傲
阅读(1213)
评论(0)
推荐(0)
下一页
公告