08 2020 档案

摘要:https://cdnjs.com/ 或 https://www.bootcdn.cn/all/ cdn 网址 axios: https://blog.csdn.net/pekaboo/article/details/107398478https://segmentfault.com/q/10100 阅读全文
posted @ 2020-08-30 18:32 小魏code 阅读(3580) 评论(0) 推荐(0)
摘要:参考: https://www.cnblogs.com/edczjw-Edison/p/12372243.html 阅读全文
posted @ 2020-08-29 23:36 小魏code 阅读(288) 评论(0) 推荐(0)
摘要:参考: https://www.jb51.net/article/161264.htm 或者 https://www.jb51.net/article/168314.htm 阅读全文
posted @ 2020-08-28 15:19 小魏code 阅读(159) 评论(0) 推荐(0)
摘要:参考: https://www.jianshu.com/p/eb9799b8ea37 https://www.jianshu.com/p/69f13e9123d9 参考详细: https://www.cnblogs.com/ljq66/p/10705933.html 阅读全文
posted @ 2020-08-28 11:13 小魏code 阅读(302) 评论(0) 推荐(0)
摘要:参考: https://blog.csdn.net/qq_39759115/article/details/78893853 参考:https://segmentfault.com/q/1010000018325857?utm_source=tag-newest // 获取的年份和月份 对应的当月总 阅读全文
posted @ 2020-08-27 15:15 小魏code 阅读(935) 评论(0) 推荐(0)
摘要:参考: https://www.cnblogs.com/bin521/p/10244502.html 项目中实践 js // plugin/components/calendar/calendar.js /** * 属性: * 01、year:年份:整型 * 02、month:月份:整型 * 03、 阅读全文
posted @ 2020-08-27 11:55 小魏code 阅读(1735) 评论(0) 推荐(0)
摘要:参考: https://www.jianshu.com/p/5ad047eb97a2 阅读全文
posted @ 2020-08-27 11:20 小魏code 阅读(1424) 评论(0) 推荐(0)
摘要:参考: https://www.jb51.net/article/141520.htm http://www.3qphp.com/web/html5/66.html city.js var city = { "City": [ { "热门城市": [ { "name": "北京市", "key": 阅读全文
posted @ 2020-08-27 10:53 小魏code 阅读(7272) 评论(0) 推荐(0)
摘要:参考 https://blog.csdn.net/mossbaoo/article/details/84786366 阅读全文
posted @ 2020-08-27 10:41 小魏code 阅读(809) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/haoxiaozhang/p/11594523.html https://blog.csdn.net/qq_38194393/article/details/88654089 https://www.imooc.com/article/details/ 阅读全文
posted @ 2020-08-26 17:41 小魏code 阅读(110) 评论(0) 推荐(0)
摘要:参考: https://www.imooc.com/article/263899 https://developers.weixin.qq.com/miniprogram/dev/reference/api/Component.html 阅读全文
posted @ 2020-08-26 11:46 小魏code 阅读(169) 评论(0) 推荐(0)
摘要:参考: https://www.cnblogs.com/riverone/p/11819708.html https://blog.csdn.net/weixin_44763569/article/details/89679781 阅读全文
posted @ 2020-08-26 11:10 小魏code 阅读(138) 评论(0) 推荐(0)
摘要:参考 : https://blog.csdn.net/qq_36710146/article/details/105110741 实际项目中:以下为封装的 小程序 支付 人脸识别 的方法js文件 在具体的页面中进行引入使用 const request = require('request.js') 阅读全文
posted @ 2020-08-26 09:10 小魏code 阅读(709) 评论(2) 推荐(1)
摘要:const socket = { // websocketUrl: 'wss://www.xpms.cn:8080/websocket/', // socket监听地址 websocketUrl: 'wss://127.0.0.1:8080/websocket/', // socket监听地址 we 阅读全文
posted @ 2020-08-25 15:52 小魏code 阅读(1756) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/c6e8edcfe27b 参考 "eslint.enable": false 阅读全文
posted @ 2020-08-24 10:45 小魏code 阅读(3157) 评论(0) 推荐(0)
摘要:/** * request 网络请求工具 * 更详细的 api 文档: https://github.com/umijs/umi-request */ import { extend } from 'umi-request'; import { notification, message } fr 阅读全文
posted @ 2020-08-22 17:58 小魏code 阅读(1384) 评论(0) 推荐(0)
摘要:https://juejin.im/post/6846687604360871943 参考 工作中使用到的另外一种 var app = getApp(); /** * 处理请求 * param: * url:请求地址 * body: 请求参数 * method: 请求方法(GET, POST)) * 阅读全文
posted @ 2020-08-22 17:52 小魏code 阅读(296) 评论(0) 推荐(0)
摘要:参考 : https://shellming.com/2019/05/08/browser-link-opens-client-exe/ 无法导入,指定文件不是注册脚本.您的注册表编辑器只能导入2进位注册文件 只要对注册文件右键编辑在开头加上Windows Registry Editor Versi 阅读全文
posted @ 2020-08-22 14:22 小魏code 阅读(1042) 评论(0) 推荐(0)
摘要:可以尝试 在 要修改的元素外面进行包裹 在给个类名 :global(.ant-popover-buttons) { display: flex; } 上面的 会造成 全部相同组件 的样式都会被修改 下面的写法应该不会 .classname { :global { .ant-popover-butto 阅读全文
posted @ 2020-08-21 11:12 小魏code 阅读(1283) 评论(0) 推荐(0)
摘要:Warning: You cannot set a form field before rendering a field associated with the value. 1、在form组件显示出后,再用this.form.setFieldsValue2、在this.$nextTick()中使 阅读全文
posted @ 2020-08-20 15:49 小魏code 阅读(3991) 评论(0) 推荐(0)
摘要://app.js var QQMapWX = require('utils/qqmap-wx-jssdk.js'); var qqmapsdk; App({ onLaunch: function () { // 实例化API核心类 qqmapsdk = new QQMapWX({ key: 'TCC 阅读全文
posted @ 2020-08-19 17:53 小魏code 阅读(430) 评论(0) 推荐(0)
摘要:参考: https://wudi98.blog.csdn.net/article/details/99748904 阅读全文
posted @ 2020-08-19 11:28 小魏code 阅读(3440) 评论(0) 推荐(0)
摘要:参考 : https://www.cnblogs.com/muamaker/p/11647626.html 父组件中 代码 import { useState, useEffect, useRef } from 'react'; // 开票触发模态框 const childRef = useRef( 阅读全文
posted @ 2020-08-19 10:03 小魏code 阅读(2846) 评论(0) 推荐(0)
摘要:音频文件 要放在线上 线上路径文件 本地文件不生效 <audio id="dsds" src="https://192.168.1.20:8082/file/hotel/1.mp3"></audio> 不能在 页面一开始加载就播放 因为 谷歌浏览器禁止了 自动播放属性 只有在页面交互时触发 播放事件 阅读全文
posted @ 2020-08-18 17:57 小魏code 阅读(1172) 评论(0) 推荐(0)
摘要:参考: https://www.jianshu.com/p/bf0a4e3926a4 https://blog.csdn.net/qq_30944053/article/details/98761447 可以封装js 文件 export const openPostWindow = (url, da 阅读全文
posted @ 2020-08-18 16:28 小魏code 阅读(1314) 评论(0) 推荐(0)
摘要:ant desgin pro https://pro.ant.design/docs/getting-started-cn pro components 表格组件 : https://procomponents.ant.design/ actionRef.current.reloadAndRest( 阅读全文
posted @ 2020-08-17 11:22 小魏code 阅读(6518) 评论(0) 推荐(0)
摘要:jsx 中的的弹框 <Modal confirmLoading={true} width={1000} style={{ textAlign: 'center' }} title={intitlebiao} visible={invisible} okText="提交" footer={ isock 阅读全文
posted @ 2020-08-17 08:49 小魏code 阅读(662) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/csj50/article/details/95374844 参考参考 阅读全文
posted @ 2020-08-17 08:22 小魏code 阅读(198) 评论(0) 推荐(0)
摘要:https://zhidao.baidu.com/question/271411520.html 参考 阅读全文
posted @ 2020-08-14 08:20 小魏code 阅读(205) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_40044912/article/details/107812704 react hooks子给父传值 https://blog.csdn.net/zyj12138/article/details/107468389 子组件: import { us 阅读全文
posted @ 2020-08-13 17:35 小魏code 阅读(7912) 评论(0) 推荐(0)
摘要:这里使用了props.form.getFieldDecorator(id,{选择操作})方法来包装一个Input输入框组件,传入的第一个参数表示这个字段的Id,第二个参数是一个配置对象,这里设置了表单控件的校验规则rules。 问题:填写Form表单时会发报 Warning: `getFieldDe 阅读全文
posted @ 2020-08-13 15:10 小魏code 阅读(5860) 评论(0) 推荐(0)
摘要:js对象转json数据: JSON.stringify(); json数据转js对象: JSON.parse(); 阅读全文
posted @ 2020-08-13 12:54 小魏code 阅读(8390) 评论(0) 推荐(0)
摘要:参考 https://www.cnblogs.com/lanshu123/p/10668320.html 阅读全文
posted @ 2020-08-10 18:42 小魏code 阅读(3248) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/s525498285/article/details/85765746 官方: https://pro.ant.design/docs/authority-management-cn 阅读全文
posted @ 2020-08-10 18:05 小魏code 阅读(2085) 评论(0) 推荐(0)
摘要:参考https://www.jianshu.com/p/1d401a2c14f7 阅读全文
posted @ 2020-08-10 11:55 小魏code 阅读(347) 评论(0) 推荐(0)
摘要:参考 https://www.jianshu.com/p/178dc2e47b2b 阅读全文
posted @ 2020-08-10 11:52 小魏code 阅读(131) 评论(0) 推荐(0)
摘要:参考 https://www.jianshu.com/p/366880601412 阅读全文
posted @ 2020-08-04 21:14 小魏code 阅读(878) 评论(0) 推荐(0)
摘要:首先创建一个报错页面, 然后在路由页面中引入 const ErrorPage = loadable(() => import('../pages/Error')); const BasicRoute = () => { return ( <BrowserRouter> <Switch> <Route 阅读全文
posted @ 2020-08-04 16:08 小魏code 阅读(924) 评论(0) 推荐(0)
摘要:防抖 性能优化方案,防抖用于减少函数请求次数,对于频繁的请求,只执行这些请求的最后一次。 基础版本 function debounce(func, wait = 300){ let timer = null; return function(){ if(timer !== null){ clearT 阅读全文
posted @ 2020-08-03 19:10 小魏code 阅读(186) 评论(0) 推荐(0)
摘要:sessionStorage清空所有缓存方法 sessionStorage.clear()轻松搞定 阅读全文
posted @ 2020-08-02 19:05 小魏code 阅读(10986) 评论(0) 推荐(0)