三叔2017-06-15 09:23:37
Confirm whether str is a String Object. Split is a function, that’s right
伊谢尔伦2017-06-15 09:23:37
split() is a method of String. The str you print out is obviously an array
给我你的怀抱2017-06-15 09:23:37
Your str is not a string type number, and the split method does not exist in arrays.
伊谢尔伦2017-06-15 09:23:37
It should be a method under a certain class, a method under string. Can’t be taken out separately, use it directly