标签: javascript
假设:
let item = { id: xxx, name: yyy }; console.log(typeof item.id, item.id, Object.keys(item.id).length)
我明白了:
object, null, TypeError: Cannot convert undefined or null to object
我很困惑。如何确定正确的类型?
感谢