摘要: 滚动列表父元素添加: -webkit-overflow-scrolling: touch; // 启用了硬件加速的特性,所以滑动很流畅 -webkit-overflow-scrolling:auto | touch auto: 普通滚动,当手指从触摸屏上移开,滚动立即停止 touch: 滚动回弹效果 阅读全文
posted @ 2020-06-03 13:39 凹润之之之 阅读(604) 评论(0) 推荐(0) 编辑
摘要: .tab-component { :global .am-tabs-tab-bar-wrap{ width: 80%; } } 如果只想在当前页面生效 外层包一个唯一的类名 阅读全文
posted @ 2020-05-30 15:16 凹润之之之 阅读(2077) 评论(0) 推荐(0) 编辑
摘要: 1、npm install http-proxy-middleware --save #or yarn add http-proxy-middleware 2、创建src/setupProxy.js const { createProxyMiddleware } = require('http-pr 阅读全文
posted @ 2020-04-30 09:50 凹润之之之 阅读(602) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>客户资料上传</title> </head> <style type="text/css"> body{ display: flex; justify-content: cente 阅读全文
posted @ 2020-03-27 10:56 凹润之之之 阅读(2871) 评论(0) 推荐(0) 编辑
摘要: jsx import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Balloon } from '@alifd/next'; import './css.scss'; export d 阅读全文
posted @ 2020-03-27 10:52 凹润之之之 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装brew 终端执行 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 接下来就是漫长的等待, 安装完成之后 执行 brew -v 如果输出 H 阅读全文
posted @ 2020-03-03 16:50 凹润之之之 阅读(6326) 评论(1) 推荐(0) 编辑
摘要: 报错信息: 开始文件夹位置是这样放的: 后查出来是应该这样放: 学习了! 阅读全文
posted @ 2019-12-26 15:14 凹润之之之 阅读(4838) 评论(0) 推荐(0) 编辑
摘要: 看了一下,原因可能是我没有点开的时候 读取到的是最新值 点开的时候会重新读取值,可能是读取到了最后给过来的null 解决方法:1: 打印之前把要打印的对象拷贝下。2、JSON.stringify()转成字符串 阅读全文
posted @ 2019-11-22 14:25 凹润之之之 阅读(1316) 评论(0) 推荐(0) 编辑
摘要: /** * 根据接口返回地址字段,找出地址树中的森林 * @param {*} value 接口给出的字段值 * @param {*} key 接口中所对应的key值 * @param {*} arr 数据源 */ function getAddressPath(value, key, arr){ 阅读全文
posted @ 2019-11-18 09:30 凹润之之之 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 在使用react的时候,this.setState为什么是异步呢? 一直以来没有深思这个问题。昨天就此问题搜索了一下。 react创始人之一 Dan Abramov gaearon在GitHub上回答了这一问题,以下是阅读后的一些总结吧 1.保持内部的一致性 即使state是同步更新,但是props 阅读全文
posted @ 2019-03-21 14:58 凹润之之之 阅读(976) 评论(0) 推荐(0) 编辑