会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
仔仔爱学习
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
20
下一页
2022年4月27日
flex 纯汉字 和 英文数字 垂直居中
摘要: <div class="txt"> <div class="txt_t">跳过</div> <div class="txt_t" style="margin-left: .13rem;">5s</div></div>css: .txt{ display: flex; align-items: bas
阅读全文
posted @ 2022-04-27 13:48 仔仔爱学习
阅读(277)
评论(0)
推荐(0)
2022年4月1日
安装node-sass 报错
摘要: npm install -g mirror-config-china --registry=http://registry.npm.taobao.org npm install node-sass npm install 转自:https://blog.csdn.net/dandan666danda
阅读全文
posted @ 2022-04-01 09:05 仔仔爱学习
阅读(62)
评论(0)
推荐(0)
2022年3月10日
对Table组件进行二次封装,那么怎么将插槽内容从父组件中传入封装的组件中呢?
摘要: 封装的组件custom-table.vue <Table :loading="loading" :columns="columns" :data="data"> <template v-for="column in columns" :slot="column.slot?column.slot:''
阅读全文
posted @ 2022-03-10 11:10 仔仔爱学习
阅读(286)
评论(0)
推荐(0)
2022年3月2日
es6 数组取 差集 交集
摘要: 差集:arr1.filter(item=>!arr2.some(ele=>ele.uid item.uid)) 交集:arr1.filter(item=>arr2.some(ele=>ele.uid item.uid))
阅读全文
posted @ 2022-03-02 10:07 仔仔爱学习
阅读(213)
评论(0)
推荐(0)
2022年2月18日
本地nodejs和npm版本过高,无法正常使用npm下载低npm版本项目所需依赖,不降级解决办法
摘要: 本地nodejs和npm版本过高,无法正常使用npm下载低npm版本项目所需依赖,不降级解决办法 这里需要使用到cnpm: 1.导入下载好到的项目 2.安装cnpm: npm install cnpm -g 3.安装 node-sass: cnpm install node-sass 4.继续安装:
阅读全文
posted @ 2022-02-18 11:01 仔仔爱学习
阅读(1683)
评论(0)
推荐(1)
2022年1月28日
vue项目--favicon设置以及动态修改favicon
摘要: 主要代码 var link = document.querySelector("link[rel*='icon']") || document.createElement('link');link.type = 'image/x-icon';link.rel = 'shortcut icon';li
阅读全文
posted @ 2022-01-28 09:39 仔仔爱学习
阅读(442)
评论(0)
推荐(0)
2022年1月26日
原生html+css设置项目主题色
摘要: <script> document.body.style.setProperty('--main-color', '#0f0');</script> .box{ width: 100px; height: 100px; background: var(--main-color);}转自:https:
阅读全文
posted @ 2022-01-26 17:33 仔仔爱学习
阅读(34)
评论(0)
推荐(0)
2022年1月20日
node.js自动化读取同文件名vue,并引入组件
摘要: // 自动化引入模块组件 const path = require('path') const files = require.context('@/components/common/modules', false, /\.vue$/) const modules = {} files.keys(
阅读全文
posted @ 2022-01-20 14:25 仔仔爱学习
阅读(299)
评论(0)
推荐(0)
2022年1月13日
es6 排序sort
摘要: <script> let arr = [2,1,3,5,4]; arr= arr.sort((n1,n2)=>{ // return -1; //返回负值 交换顺序 // return 0 或者 1 //返回正值 保持顺序不变 console.log(n1,n2); return n2-n1; //
阅读全文
posted @ 2022-01-13 14:29 仔仔爱学习
阅读(1756)
评论(0)
推荐(0)
2022年1月11日
blob 下载并给文件重命名 es6的写法 jquery的写法
摘要: 1、es6的写法/** * 获取 blob * @param {String} url 目标文件地址 * @return {Promise} */ function getBlob(url) { return new Promise(resolve => { const xhr = new XMLH
阅读全文
posted @ 2022-01-11 10:38 仔仔爱学习
阅读(745)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
20
下一页
公告