I am learning javascript and I am analyzing existing codes.
In my JS reference book, it says to search on a single space use "s
"?
But I have came across the code
obj.match(/Kobe Bryant/);
Instead of using s
, it uses the actual space?
Why doesn't this generate an error?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…