上一页 1 2 3 4 5 6 ··· 19 下一页
摘要: 使用场景:某个函数需要等另一个或多个函数执行结束后再执行。 举个例子: async function getSum() { let one = await this.getOne(); let two = await this.getTwo(); console.log('sum=',one,two 阅读全文
posted @ 2021-09-10 18:42 小白&小菜 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 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 小白&小菜 阅读(3271) 评论(0) 推荐(0) 编辑
摘要: // 通用下载方法 export function download(fileName) { /* * 使用window.location.href pc端下载正常,平板下载后文件内容为空 * // window.location.href = baseURL + "/common/download 阅读全文
posted @ 2021-08-31 17:38 小白&小菜 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 简单使用 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 小白&小菜 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 前提:小程序必须是发布过的,否则生成不了小程序码; 步骤: 1.告知后台人员:需要传的参数,及跳转页面地址; 2.后台人员提供接口(可以生成小程序码的接口); 3.在需要小程序码识别进入的页面,onLoad事件中scene获取参数,(如详情id),如下: onLoad: function (opti 阅读全文
posted @ 2021-03-29 14:01 小白&小菜 阅读(624) 评论(0) 推荐(0) 编辑
摘要: ui框架官网:https://www.antdv.com/components/table-cn/ 弄了差不多一天,哎,终于可以了; 需求:以下表格中红框部分的数据虽然一样,但因为“等级”不同,不能做合并; 方案: data部分: temp:{},//当前重复的值,支持多列 filBonusColu 阅读全文
posted @ 2021-02-26 10:46 小白&小菜 阅读(2958) 评论(0) 推荐(0) 编辑
摘要: 效果图 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 小白&小菜 阅读(4534) 评论(2) 推荐(1) 编辑
摘要: 在wxml页面中,只能在插值{{ }}中写简单的js表达式,而不能调用方法,例如想取出一个字符串的最后一位,就不能调用slice()方法 util.wxs文件 // .wxs文件 function indexOf(arr, value) { if (arr.indexOf(value) < 0) { 阅读全文
posted @ 2021-02-03 17:12 小白&小菜 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/wytbr666/article/details/77477182 阅读全文
posted @ 2021-01-28 14:45 小白&小菜 阅读(220) 评论(0) 推荐(0) 编辑
摘要: .center { position: absolute; left: 50%; top: 0; transform: translate(-50%,0); } 阅读全文
posted @ 2021-01-13 09:25 小白&小菜 阅读(477) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 19 下一页
我是一个小菜鸟,飞呀飞呀,快飞高