![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
文章平均质量分 73
枫之记
出发,永远都是最有意义的事
展开
-
页面全屏&退出全屏 React js
import React, { Component } from 'react'export default class FullScreen extends Component { toggleFullScreen() { if ( !document.fullscreenElement && !document.mozFullScreenElement && !document.webkitFullscreenEl原创 2020-07-03 15:38:33 · 477 阅读 · 0 评论 -
antd react 邮箱地址补全
import React, { Component } from 'react'import { AutoComplete } from 'antd'const { Option } = AutoCompleteexport default class serach extends Component { state = { result: [], } handleSearch = (value) => { let res = [] if (!value原创 2020-06-28 17:45:11 · 877 阅读 · 0 评论 -
react 截取字符串自定义字符的前后内容
在上传附件的时候,有时候文件名会过长,需要处理一下,效果如下:import React from 'react'class Resume extends React.Component { state = { fileName: '请上传附件简历' } uploadFile = () => { let fileInputName = this.fileInput.current.files[0].name let name = fileInputName.rep原创 2020-06-28 14:49:19 · 3679 阅读 · 0 评论