react-native类型判断
2020-07-20 本文已影响0人
喜剧收尾_XWX
if(typeof action === 'function'){
// console.log('dispatching a function');
}
else{
// console.log('dispatching',action);
}
if(typeof action === 'function'){
// console.log('dispatching a function');
}
else{
// console.log('dispatching',action);
}