摘要: .get-list{ position: relative; width:100px; height: 50px; border-radius: 10px; background: olivedrab; } .get-list::before{ position: absolute; top:-16 阅读全文
posted @ 2020-05-13 15:21 lyt598 阅读(93) 评论(0) 推荐(0) 编辑
摘要: import React , {Component} from 'react'; import { Cascader } from 'antd'; import CityData from './cityData'; class TestOne extends Component { onChang 阅读全文
posted @ 2020-05-07 16:51 lyt598 阅读(428) 评论(0) 推荐(0) 编辑
摘要: const Position = [{ value: '北京市',label: '北京市','children': [{ value: '北京市',label: '北京市','children': [{ value: '东城区',label: '东城区'}, { value: '西城区', labe 阅读全文
posted @ 2020-05-07 15:35 lyt598 阅读(611) 评论(0) 推荐(0) 编辑
摘要: function resizeListener(){ // 定义设计图的尺寸 1920 let designSize = 1920; // 获取 html 元素 let html = document.documentElement; // 定义窗口的宽度 let clientW = html.cl 阅读全文
posted @ 2020-05-07 14:23 lyt598 阅读(165) 评论(0) 推荐(0) 编辑
摘要: constructor(props){ super(props); this.state = { collapsed:false } } handleClientW = (width,num)=>{ if(width < num){ this.setState({ collapsed:true }) 阅读全文
posted @ 2020-05-07 13:47 lyt598 阅读(4814) 评论(0) 推荐(0) 编辑
摘要: voicePaly= ()=> { var music=new Audio(); music.src="./music/music.mp3";//这里替换成一个有效的音频文件地址以方便测试 music.loop=true; music.play(); }; //由于浏览器不支持 自动播放,因此需要在 阅读全文
posted @ 2020-04-12 10:15 lyt598 阅读(2144) 评论(0) 推荐(0) 编辑
摘要: <div class="img-wrapper"> <img src="xxx.png" alt="" class="img-style"/> </div> <style> .img-wrapper{ overflow: hidden; width:100%; height: 0; padding- 阅读全文
posted @ 2020-03-12 12:41 lyt598 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 进入到react-devtools-master文件夹,用npm安装依赖 npm --registry https://registry.npm.taobao.org install 安装依赖成功后,我们便可以打包一份扩展程序出来 npm run build:extension:chrome项目目录 阅读全文
posted @ 2020-03-11 16:34 lyt598 阅读(467) 评论(0) 推荐(0) 编辑
摘要: import zh_CN from 'antd/lib/locale-provider/zh_CN'; import 'moment/locale/zh-cn'; import { ConfigProvider } from 'antd'; // 然后用ConfigProvider包裹全局组件 ex 阅读全文
posted @ 2019-11-12 16:45 lyt598 阅读(2090) 评论(1) 推荐(2) 编辑
摘要: 将.crx的文件的扩展名改为.zip,并解压到指定的文件夹(这个文件夹不能删除, 例如解压到了test文件夹) 打开Chrome浏览器,地址栏输入 chrome://extensions/, 勾择开发者模式,点击'加载已解压的扩展程序' 选择你刚刚.zip`文件解压所在的test文件夹,点击确定。扩 阅读全文
posted @ 2019-11-06 13:48 lyt598 阅读(704) 评论(0) 推荐(0) 编辑