var dataObj = {
"pageSize": 12,
"checklistQuestionSOList": [{
"pageSize": 0,
"pageNumber": 0,
"answerOptions": [
"--", 1, "NO", undefined, null
]
}]
};
if (toString.call(entry) !== '[object Number]' && toString.call(entry) !== '[object Null]') {
}
我收到此错误
Uncaught TypeError: Cannot convert undefined or null to object
我正在考虑使用这个toString方法,而不是使用typeof,但我得到以下错误。