【发布时间】:2016-03-19 06:38:42
【问题描述】:
如果我将 new Animated.Value(0) 设置为一个变量,然后将该变量输出到控制台日志,我会得到一个如下所示的永无止境的列表。如何将任何单个元素返回到日志?
{ _children: [],
x:
{ _children:
[ { _children:
[ { _children:
[ { _props:
{ style: [Circular],
onStartShouldSetResponder: [Function],
onMoveShouldSetResponder: [Function],
onStartShouldSetResponderCapture: [Function],
onMoveShouldSetResponderCapture: [Function],
onResponderGrant: [Function],
onResponderReject: [Function],
onResponderRelease: [Function],
onResponderStart: [Function],
onResponderMove: [Function],
onResponderEnd: [Function],
onResponderTerminate: [Function],
onResponderTerminationRequest: [Function],
children:
{ '$$typeof': {},
type:
{ [Function]
displayName: 'Text',
propTypes: [Object],
getDefaultProps: [Object],
childContextTypes: [Object],
contextTypes: [Object],
defaultProps: [Object] },
key: null,
【问题讨论】:
标签: ios reactjs console react-native console.log