会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小白&小菜
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
19
下一页
2021年9月10日
理解异步函数(async await;Promise)
摘要: 使用场景:某个函数需要等另一个或多个函数执行结束后再执行。 举个例子: async function getSum() { let one = await this.getOne(); let two = await this.getTwo(); console.log('sum=',one,two
阅读全文
posted @ 2021-09-10 18:42 小白&小菜
阅读(279)
评论(0)
推荐(0)
2021年9月1日
el-table 设置自定义label(render-header)
摘要: template <el-table-column prop="daNumber" label="编码号" width="260" show-overflow-tooltip fixed :render-header="renderHeader"> <template slot-scope="{ r
阅读全文
posted @ 2021-09-01 11:45 小白&小菜
阅读(3589)
评论(0)
推荐(0)
2021年8月31日
js下载文件 兼容性写法
摘要: // 通用下载方法 export function download(fileName) { /* * 使用window.location.href pc端下载正常,平板下载后文件内容为空 * // window.location.href = baseURL + "/common/download
阅读全文
posted @ 2021-08-31 17:38 小白&小菜
阅读(389)
评论(0)
推荐(0)
2021年4月23日
seo + vue-meta-info + vuex
摘要: 简单使用 1.cmd安装vuex,vue-meta-info cnpm install vuex -savecnpm install vue-meta-info --save 2.src下新建store文件夹,新增src/store/index.js文件 import Vue from 'vue'i
阅读全文
posted @ 2021-04-23 14:46 小白&小菜
阅读(201)
评论(0)
推荐(0)
2021年3月29日
小程序使用带参数的小程序码
摘要: 前提:小程序必须是发布过的,否则生成不了小程序码; 步骤: 1.告知后台人员:需要传的参数,及跳转页面地址; 2.后台人员提供接口(可以生成小程序码的接口); 3.在需要小程序码识别进入的页面,onLoad事件中scene获取参数,(如详情id),如下: onLoad: function (opti
阅读全文
posted @ 2021-03-29 14:01 小白&小菜
阅读(704)
评论(0)
推荐(0)
2021年2月26日
ant design of vue 表格合并
摘要: ui框架官网:https://www.antdv.com/components/table-cn/ 弄了差不多一天,哎,终于可以了; 需求:以下表格中红框部分的数据虽然一样,但因为“等级”不同,不能做合并; 方案: data部分: temp:{},//当前重复的值,支持多列 filBonusColu
阅读全文
posted @ 2021-02-26 10:46 小白&小菜
阅读(3195)
评论(0)
推荐(0)
2021年2月24日
vue移动端canvas绘制签名插件:signature_pad
摘要: 效果图 1.下载:npm install --save signature_pad 2.引入并使用 <template> <div> <div style="border: 1px solid #eee" ref="canvasBox"> <canvas class="canvasId"/> </d
阅读全文
posted @ 2021-02-24 18:54 小白&小菜
阅读(4933)
评论(2)
推荐(1)
2021年2月3日
小程序无法在渲染时使用indexOf的解决方法
摘要: 在wxml页面中,只能在插值{{ }}中写简单的js表达式,而不能调用方法,例如想取出一个字符串的最后一位,就不能调用slice()方法 util.wxs文件 // .wxs文件 function indexOf(arr, value) { if (arr.indexOf(value) < 0) {
阅读全文
posted @ 2021-02-03 17:12 小白&小菜
阅读(1049)
评论(0)
推荐(0)
2021年1月28日
webstorm 单页面引入scss
摘要: 参考:http://blog.csdn.net/wytbr666/article/details/77477182
阅读全文
posted @ 2021-01-28 14:45 小白&小菜
阅读(225)
评论(0)
推荐(0)
2021年1月13日
css:图片相对定位的情况下,左右居中显示
摘要: .center { position: absolute; left: 50%; top: 0; transform: translate(-50%,0); }
阅读全文
posted @ 2021-01-13 09:25 小白&小菜
阅读(487)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
19
下一页
公告
我是一个小菜鸟,飞呀飞呀,快飞高