• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
you1you
博客园 首页 新随笔 管理

2017年9月20日

anu - browser
摘要: import { oneObject, recyclables, typeNumber } from "./util"; //用于后端的元素节点 export function DOMElement(type) { this.nodeName = type; this.style = {}; this.children = []; } //如果仅仅通过引用 SVG 的命... 阅读全文
posted @ 2017-09-20 13:57 you1you 阅读(245) 评论(0) 推荐(0)
 
anu - reactIE
摘要: import { options } from "./util"; import { Children } from "./Children"; import * as eventSystem from "./event"; import { PropTypes } from "./PropTypes"; import { Component } from "./Component"; impo... 阅读全文
posted @ 2017-09-20 13:55 you1you 阅读(163) 评论(0) 推荐(0)
 
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... 阅读全文
posted @ 2017-09-20 13:55 you1you 阅读(184) 评论(0) 推荐(0)
 
anu - pureComponent
摘要: import { inherit } from "./util"; import { Component } from "./Component"; import { shallowEqual } from "./shallowEqual"; export function PureComponent(props, context) { Component.call(this, pro... 阅读全文
posted @ 2017-09-20 13:52 you1you 阅读(138) 评论(0) 推荐(0)
 
anu - react
摘要: import { options } from "./util"; import { Children } from "./Children"; import * as eventSystem from "./event"; import { PropTypes } from "./PropTypes"; import { Component } from "./Component"; impo... 阅读全文
posted @ 2017-09-20 13:52 you1you 阅读(199) 评论(0) 推荐(0)
 
anu - proptypes
摘要: //为了兼容yo var check = function () { return check; }; check.isRequired = check; export var PropTypes = { array: check, bool: check, func: check, number: check, object: check, ... 阅读全文
posted @ 2017-09-20 13:51 you1you 阅读(141) 评论(0) 推荐(0)
 
anu - controlledComponent
摘要: /** input, select, textarea这几个元素如果指定了value/checked的**状态属性**,就会包装成受控组件或非受控组件 受控组件是指,用户除了为它指定**状态属性**,还为它指定了onChange/onInput/disabled等用于控制此状态属性 变动的属性 反之,它就是非受控组件,非受控组件会在框架内部添加一些事件,阻止**状态属性**被用户的行为改... 阅读全文
posted @ 2017-09-20 13:50 you1you 阅读(265) 评论(0) 推荐(0)
 
anu - component
摘要: import { extend, isFn, options, clearArray, noop } from "./util"; import { CurrentOwner } from "./createElement"; /** *组件的基类 * * @param {any} props * @param {any} context */ var mountOrder = 1;... 阅读全文
posted @ 2017-09-20 13:49 you1you 阅读(175) 评论(0) 推荐(0)
 
anu - children
摘要: import { _flattenChildren } from "./createElement"; export const Children = { only(children) { //only方法接受的参数只能是一个对象,不能是多个对象(数组)。 if (Array.isArray(children)) { childr... 阅读全文
posted @ 2017-09-20 13:47 you1you 阅读(176) 评论(0) 推荐(0)
 
anu - event
摘要: import { document } from "./browser"; import { isFn, noop, options } from "./util"; var globalEvents = {}; export var eventPropHooks = {}; //用于在事件回调里对事件对象进行 export var eventHooks = {}; //用于在元素上绑定特定的... 阅读全文
posted @ 2017-09-20 10:22 you1you 阅读(268) 评论(0) 推荐(0)
 
 

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3