I started to test my web site on google chrome and
'cannot call method 'join' of null'
appears when doing this:
var sChoices = oQuestion.aChoiceRand.join("");
In IE and FF works well. What I'm trying to do with this code is to join all the aChoiceRand
array elements in a string without any separators. How can I solve this?
I started to test my web site on google chrome and
'cannot call method 'join' of null'
appears when doing this:
var sChoices = oQuestion.aChoiceRand.join("");
In IE and FF works well. What I'm trying to do with this code is to join all the aChoiceRand
array elements in a string without any separators. How can I solve this?
1 Answer
Reset to default 3The problem's cause must be earlier, when oQuestion.aChoiceRand
gets assigned: you think it's assigned to an array (and apparently IE and FF agree with you), Chrome is telling you that it's null instead. We can't really help without seeing the code that's supposed to assign oQuestion.aChoiceRand
its value...
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745597953a4635228.html
评论列表(0条)