TA的每日心情 | 开心 2022-6-2 15:24 |
---|
签到天数: 3 天 [LV.2]偶尔看看I
初级工程师
- 积分
- 79
|
发表于
2022-6-2 14:21:04
|
显示全部楼层
本帖最后由 ozon 于 2022-6-2 14:38 编辑
是这样的console.log(ele[prop])
- m {_currentElement: {…}, _tag: "input", _namespaceURI: "http://www.w3.org/1999/xhtml", _renderedChildren: null, _previousStyle: null, …}
- _currentElement: {$$typeof: Symbol(react.element), type: "input", key: "input", ref: "input", props: {…}, …}
- _domID: 39
- _flags: 1
- _hostContainerInfo: {_topLevelWrapper: p, _idCounter: 250, _ownerDocument: document, _node: div#container, _tag: "div", …}
- _hostNode: input
- _hostParent: m {_currentElement: {…}, _tag: "span", _namespaceURI: "http://www.w3.org/1999/xhtml", _renderedChildren: {…}, _previousStyle: null, …}
- _mountImage: null
- _mountIndex: 0
- _namespaceURI: "http://www.w3.org/1999/xhtml"
- _previousStyle: null
- _previousStyleCopy:
- textIndent: undefined
- __proto__: Object
- _renderedChildren: null
- _rootNodeID: 34
- _tag: "input"
- _topLevelWrapper: null
- _wrapperState:
- controlled: true
- initialChecked: undefined
- initialValue: ""
- listeners: Array(1)
- onChange: ƒ ()
- valueTracker: {getValue: ƒ, setValue: ƒ, stopTracking: ƒ}
- __proto__: Object
- __proto__:
- createChild: ƒ (e,t,n)
- getHostNode: ƒ ()
- getPublicInstance: ƒ ()
- mountChildren: ƒ (e,t,n)
- mountComponent: ƒ (e,t,n,r)
- moveChild: ƒ (e,t,n,r)
- receiveComponent: ƒ (e,t,n)
- removeChild: ƒ (e,t)
- unmountChildren: ƒ (e)
- unmountComponent: ƒ (e)
- updateChildren: ƒ (e,t,n)
- updateComponent: ƒ (e,t,n,r)
- updateMarkup: ƒ (e)
- updateTextContent: ƒ (e)
- _createContentMarkup: ƒ (e,t,n)
- _createInitialChildren: ƒ (e,t,n,r)
- _createOpenTagMarkupAndPutListeners: ƒ (e,t)
- _mountChildAtIndex: ƒ (e,t,n,r,o,a)
- _reconcilerInstantiateChildren: ƒ (e,t,n)
- _reconcilerUpdateChildren: ƒ (e,t,n,r,o,a)
- _unmountChild: ƒ (e,t)
- _updateChildren: ƒ (e,t,n)
- _updateDOMChildren: ƒ (e,t,n,r)
- _updateDOMProperties: ƒ (e,t,n)
- constructor: ƒ m(e)
- __proto__: Object
复制代码
|
-
|