什么":?"在javascript源代码中表示

时间:2016-12-28 21:48:13

标签: javascript react-native ecmascript-6

这样的意思是什么?

_scrollViewRef: (null: ?ScrollView)
  

https://github.com/facebook/react-native/blob/master/Libraries/Components/ScrollView/ScrollView.js#L439

或者这个:

watchID = (null: ?number);
  

https://www.tutorialspoint.com/react_native/react_native_geolocation.htm

我的困惑在于这一部分" :?"
这些代码如何运作? 这是什么意思?

0 个答案:

没有答案