且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Typeerror:无法读取未定义的属性'adatasort'如何解决

更新时间:2022-10-29 17:18:15

您的代码将类似于



 someObj.aDataSort 





和someObj为null或未定义。我们不能说为什么我们看不到你的代码,但解决方案是修复你的代码,以便someObj有一个值,或者如果代码未定义则更改代码,无论你的需求是什么


TypeError: Cannot read property 'aDataSort' of undefined how i can solve

What I have tried:

TypeError: Cannot read property 'aDataSort' of undefined how i can solve

Your code will be something like

someObj.aDataSort



and "someObj" is null or "undefined". We can't possibly say why that is given we can't see your code, but the solution is to fix your code so that "someObj" has a value, or change the code to work if it is undefined, whatever matches your needs.