What is the difference between(之间有什么区别)
alert("abc".substr(0,2));
alert("abc".substring(0,2));
The difference is in the second argument.(区别在于第二个参数。)
substring
substr
2.1m questions
2.1m answers
60 comments
57.0k users