|
|
Q1071 indexOf in combination with charAt does not work
irt.org | Knowledge Base | JavaScript | Bugs | Q1071 [ previous next ] Q1071 indexOf in combination with charAt does not workSymptom: if (astring.indexOf(bstring.charAt(i)) !=-1) returns the index of the current bstring char in bstring instead of in astring. Workaround: ch = bstring.charAt(i); if (astring.indexOf(ch) !=-1) ... |
-- div -->
|