我爱编程

JS中substr和substring的用法和区别

2018-03-30  本文已影响0人  飞鱼_JS
'hello world'.substr(1,1) //e
"hello world".substring(1,3) // el
上一篇 下一篇

猜你喜欢

热点阅读