jianke yu
Results
1
comments of
jianke yu
我认为。不需要写成函数直接if { } else {} 就可以了 var obj = { name: 'xiaoming' } if (typeof obj === 'object') { console.log(obj.name); } else { console.log('obj is not a object'); } }
jianke yu
我认为。不需要写成函数直接if { } else {} 就可以了 var obj = { name: 'xiaoming' } if (typeof obj === 'object') { console.log(obj.name); } else { console.log('obj is not a object'); } }