2018年4月13日
摘要: // 劫持广告 iframe:not(#own_frame){ display: none !important; } // 劫持广告 iframe:not(#own_frame){ display: none !important; } 阅读全文
posted @ 2018-04-13 20:41 Leifmin.Lin 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 一、Action 是js对象,是改变State的唯一途径 通过dispatch函数分发。 dispatch({ type: 'user/add', // 如果在 model 外调用,需要添加 namespace payload: {}, // 需要传递的信息 }); 二、dispatch函数 用于触 阅读全文
posted @ 2018-04-13 15:34 Leifmin.Lin 阅读(2154) 评论(0) 推荐(0) 编辑
摘要: 一、react写法 `React.createClass`是react刚开始推荐的创建组件的方式,这是ES5的原生的JavaScript来实现的React组件,其形式如下: 二、ES6写法 React.Component 以上两者区别 A、React.createClass创建的组件,其每一个成员函 阅读全文
posted @ 2018-04-13 14:57 Leifmin.Lin 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.初始化 Initalization 2.state/props更新 3.销毁阶段 Destruction 一、initialization constructor() 构造阶段 componentWillMount() 模块将要安装 render 母鸡(递交) componentDidMount 阅读全文
posted @ 2018-04-13 12:05 Leifmin.Lin 阅读(109) 评论(0) 推荐(0) 编辑
摘要: web 存在很多的文档类型,这个是声明文档类型 全称为Document Type HyperText Mark-up Language,意思为文档种类为超文本标记性语言或超文本链接标示语言,现在是这个简洁形式,支持html5标准的主流浏览器都认识这个声明。 声明文档的解析类型(document.co 阅读全文
posted @ 2018-04-13 10:20 Leifmin.Lin 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Proxy 对象用于定义基本操作的自定义行为(例:属性查找) 共13种可代理操作、每种操作的代号(属性名、方法名)和触发这种操作的方式列举如下。注意,如果没有定义某种操作,那么这种操作会被妆发到目标对象身上。 参数traps 提供属性访问的方法,这类似于操作系统中陷阱的概念 target 代理虚拟化 阅读全文
posted @ 2018-04-13 09:57 Leifmin.Lin 阅读(169) 评论(0) 推荐(0) 编辑