摘要: 1. 找到源码下面的这个文件 2. 增加红色方框中的代码 3.组件中使用 4.传入tooltipArr的格式 this.toolTipArr = data.map((item) => { return [{ text: `二氧化碳浓度:${item.co2}`, color: '#1990FF' } 阅读全文
posted @ 2022-05-11 13:38 大海啊都是水啊水 阅读(2204) 评论(0) 推荐(1) 编辑
摘要: 1.在app.js定义方法 overShare: function () { //监听路由切换 wx.onAppRoute(function (res) { let pages = getCurrentPages(), view = pages[pages.length - 1] if (view) 阅读全文
posted @ 2021-09-07 16:11 大海啊都是水啊水 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 假如有这样一个数组。arr = [12,34,45,46,36,58,36,59],现在要遍历该数组。 方法1:以前我们可能会这样做: for(var i=0;i<arr.length;i++){ console.log(arr[i]+"\n") } 方法2:自ES5发布后,我们可以使用内置的for 阅读全文
posted @ 2021-08-10 11:14 大海啊都是水啊水 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 第一款: 官方WeUI组件库,地址 https://developers.weixin.qq.com/miniprogram/dev/extended/weui/ 预览码: 第二款: ColorUI:地址 https://github.com/weilanwl/ColorUI 预览码: 第三款: v 阅读全文
posted @ 2021-07-29 15:29 大海啊都是水啊水 阅读(417) 评论(0) 推荐(0) 编辑
摘要: // 获取发票列表 async getInvoiceList(id) { const result = await invoiceList({ exhibitionId: id }); console.log(result); if (result.code 200) { let arryNew = 阅读全文
posted @ 2021-07-26 19:22 大海啊都是水啊水 阅读(2685) 评论(0) 推荐(0) 编辑
摘要: encode = 'aa(ddsdd)gh' var re = /\([^\)]+\)/g encode = encode.match(re)[0] encode = encode.substring(1,encode.length-1) //ddsdd 阅读全文
posted @ 2021-06-03 14:30 大海啊都是水啊水 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 现在微信小程序是非常火爆的,所以各个大厂都推出了自己特色的小程序应用,如:百度智能小程序、头条小程序、支付宝小程序、QQ小程序、钉钉小程序等。如果完成从0开始开发的话,成本还是蛮高的,所以我们需要借助现成的UI组件和框架来为我们节省一些时间。 WeUI WeUI是由微信官方设计团队分别支持微信H5网 阅读全文
posted @ 2021-05-24 10:23 大海啊都是水啊水 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: ##单列去除逗号 UPDATE table SET fieldA= REPLACE(fieldA, ',', '') ##多列去除逗号 UPDATE table SET fieldA= REPLACE(fieldA, ',', ''),fieldB = REPLACE(fieldB, ',', '' 阅读全文
posted @ 2021-05-18 16:19 大海啊都是水啊水 阅读(1987) 评论(0) 推荐(0) 编辑
摘要: ##GitHub地址 https://github.com/mroderick/PubSubJS ##案例——两个兄弟组件通讯 ,search搜索框组件,list列表组件 1.Search.jsx import React, { Component } from 'react' import Pub 阅读全文
posted @ 2021-04-30 10:34 大海啊都是水啊水 阅读(120) 评论(0) 推荐(0) 编辑
摘要: react脚手架配置代理总结 方法一 在package.json中追加如下配置 "proxy":"http://localhost:5000" 说明: 优点:配置简单,前端请求资源时可以不加任何前缀。 缺点:不能配置多个代理。 工作方式:上述方式配置代理,当请求了3000不存在的资源时,那么该请求会 阅读全文
posted @ 2021-04-30 10:19 大海啊都是水啊水 阅读(58) 评论(0) 推荐(0) 编辑