博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年6月20日

摘要: git co -b <branch name> origin/<remote branch name> git pull git merge feature_xx --squash git commit -m '' git push 阅读全文

posted @ 2019-06-20 15:48 lee_xiumei 阅读(108) 评论(0) 推荐(0)

2019年3月6日

摘要: 1. 工具:Weinre 2. 安装:npm -g install weinre | npm install weinre -g --registry=https://registry.npm.taobao.org 3. 获取 ip:ifconfig(Linux / Mac) | ipconfig( 阅读全文

posted @ 2019-03-06 17:53 lee_xiumei 阅读(349) 评论(0) 推荐(0)

摘要: 华为型号:ARE-AL10,安卓版本:8.1.0,自带浏览器版本:4.0.230 一、 问题一:不支持 Array.prototype.includes() 解决:polyfill 文件中引入: import 'core-js/es7/array' 二、 问题二:flex 多行布局失效,不换行 解决 阅读全文

posted @ 2019-03-06 17:15 lee_xiumei 阅读(1485) 评论(0) 推荐(0)

2019年1月8日

摘要: <div class='thin-border'></div> .thin-border { position: relative; width: 40px; height: 20px; } .thin-border::after { content: ' '; position: absolute 阅读全文

posted @ 2019-01-08 10:29 lee_xiumei 阅读(174) 评论(0) 推荐(0)

摘要: export const aspectRatio = (width, height) => { height: 0, overflow: 'hidden', paddingBottom: `${(height / width) * 100}%`, } padding-bottom 值为百分比时,百分 阅读全文

posted @ 2019-01-08 10:23 lee_xiumei 阅读(116) 评论(0) 推荐(0)

2019年1月2日

摘要: const recordHistoryPosition = () => { if (window.history.replaceState) { const state = { __scrollX: window.scrollX, __scrollY: window.scrollY, } windo 阅读全文

posted @ 2019-01-02 18:32 lee_xiumei 阅读(1497) 评论(0) 推荐(0)

2018年10月23日

摘要: subclass: subclass is a class that extends another class. 即子类。 In ES2015, to use 'this' in subclasses, we first must call super(). Why 'this' can not 阅读全文

posted @ 2018-10-23 16:14 lee_xiumei 阅读(179) 评论(0) 推荐(0)

2018年6月13日

摘要: 第一种简单的方法: 在弹窗出现时,在 html 上添加 class: .open-model { overflow: hidden; height: 100%; } 弹窗消失时,再 remove class 代码示例(react): import React from 'react' import 阅读全文

posted @ 2018-06-13 18:26 lee_xiumei 阅读(338) 评论(0) 推荐(0)

2018年5月3日

摘要: 有时候 commit 后才意识到还未 pull,这个时候会有如下提示: wlan-0-182:mobile-v2 lixiumei$ hg pull -upulling from ssh://hg@bitbucket.org/ifanr/socialbasesearching for changes 阅读全文

posted @ 2018-05-03 17:13 lee_xiumei 阅读(1535) 评论(0) 推荐(0)

2018年4月24日

摘要: 目前移动版等分布局最常用的是 flex 等分,pc 端上用得更多则是 float。 假设父元素下有 3 个子元素,每个子元素相隔 24px,子元素等分父元素宽度 实现:float + margin (inline-block + margin) // html <div class="parent" 阅读全文

posted @ 2018-04-24 18:35 lee_xiumei 阅读(535) 评论(0) 推荐(0)