How to resolve TypeError: Cannot convert undefined or null to object

后端 未结 9 1271
生来不讨喜
生来不讨喜 2020-11-28 05:44

I\'ve written a couple of functions that effectively replicate JSON.stringify(), converting a range of values into stringified versions. When I port my code over to JSBin an

9条回答
  •  悲&欢浪女
    2020-11-28 06:33

    I have the same problem with a element in a webform. So what I did to fix it was validate. if(Object === 'null') do something

提交回复
热议问题