在我的javascript中:
console.log($.isArray(thisValue)); //true
strDisplay = thisValue.split(" "); //TypeError: thisValue.split is not a function
Run Code Online (Sandbox Code Playgroud)
'thisValue'是我从.json文件获取的对象的属性.在某些情况下,我的对象的属性可能是一个数组.我查看原始的.json文件,它似乎被正确格式化为数组.
关于可能会发生什么的任何想法?
谢谢.