111
rated 0 times
[
118]
[
7]
/ answers: 1 / hits: 47585
/ 14 Years ago, wed, march 2, 2011, 12:00:00
First I set a variable, and set it to empty:
var str = ;
Then I split it through &:
var strs = str.split('&');
In the end, I show strs
's length:
alert( strs.length);
It alert 1.
But I assign nothing to the 'str' variable. Why does it still have a length, should't it be zero?
More From » split