anu - browser
摘要:import { oneObject, recyclables, typeNumber } from "./util"; //用于后端的元素节点 export function DOMElement(type) { this.nodeName = type; this.style = {}; this.children = []; } //如果仅仅通过引用 SVG 的命...
阅读全文
anu - reactIE
摘要:import { options } from "./util"; import { Children } from "./Children"; import * as eventSystem from "./event"; import { PropTypes } from "./PropTypes"; import { Component } from "./Component"; impo...
阅读全文
anu - reactShime
摘要:import { Component } from "./Component"; import { options } from "./util"; import { Children } from "./Children"; import * as eventSystem from "./event"; import { win as window } from "./browser"; im...
阅读全文
anu - pureComponent
摘要:import { inherit } from "./util"; import { Component } from "./Component"; import { shallowEqual } from "./shallowEqual"; export function PureComponent(props, context) { Component.call(this, pro...
阅读全文
anu - react
摘要:import { options } from "./util"; import { Children } from "./Children"; import * as eventSystem from "./event"; import { PropTypes } from "./PropTypes"; import { Component } from "./Component"; impo...
阅读全文
anu - proptypes
摘要://为了兼容yo var check = function () { return check; }; check.isRequired = check; export var PropTypes = { array: check, bool: check, func: check, number: check, object: check, ...
阅读全文
anu - controlledComponent
摘要:/** input, select, textarea这几个元素如果指定了value/checked的**状态属性**,就会包装成受控组件或非受控组件 受控组件是指,用户除了为它指定**状态属性**,还为它指定了onChange/onInput/disabled等用于控制此状态属性 变动的属性 反之,它就是非受控组件,非受控组件会在框架内部添加一些事件,阻止**状态属性**被用户的行为改...
阅读全文
anu - component
摘要:import { extend, isFn, options, clearArray, noop } from "./util"; import { CurrentOwner } from "./createElement"; /** *组件的基类 * * @param {any} props * @param {any} context */ var mountOrder = 1;...
阅读全文
anu - children
摘要:import { _flattenChildren } from "./createElement"; export const Children = { only(children) { //only方法接受的参数只能是一个对象,不能是多个对象(数组)。 if (Array.isArray(children)) { childr...
阅读全文
anu - event
摘要:import { document } from "./browser"; import { isFn, noop, options } from "./util"; var globalEvents = {}; export var eventPropHooks = {}; //用于在事件回调里对事件对象进行 export var eventHooks = {}; //用于在元素上绑定特定的...
阅读全文
对团队建设的一点不成熟看法
摘要:实这样还不如分工, 一个人专门去研究安全, 一个月分享一次, 时间1-5个小时; 形成系统的文档, 通俗的讲解 和切实可执行的方案; 根据内容的精彩度 和推动公司业务的程度来做api奖励和部门基金的奖励; 和明星员工的推荐, 大家投票 一个人专门研究网络协议, 比如websocket http2.0
阅读全文
websocket 缺点
摘要:当时用 python 做的服务器,后来回去想再工作项目上用,但新的技术升级,随之而来还是要解决很多非技术问题, 服务器带宽,并发服务器性能方方面面考虑之后还是没有用上,十分可惜, 一个新的技术推动,尤其是在的大传统企业中实在困难。 它对开发者要求高了许多。 对前端开发者,往往要具备数据驱动使用jav
阅读全文
react 高阶组件
摘要:链接 高阶组件是React 中一个很重要且较复杂的概念 高阶组件在很多第三方库(如Redux)中都被经常使用 即使你开发的是普通的业务项目,用好高阶组件也能显著提高你的代码质量。 高阶组件接收React组件作为参数,并且返回一个新的React组件。 高阶组件本质上也是一个函数,并不是一个组件,这一点
阅读全文
一个自动化测试工具 UI Recorder
摘要:链接 教程 UI Recorder 是一款零成本UI自动化录制工具,类似于Selenium IDE. UI Recorder 要比Selenium IDE更加强大! UI Recorder 非常简单易用. 官方网站:http://uirecorder.com/
阅读全文