I got something to share...
var str = "abcdefg"; //顯示bcd alert ( str.substr ( 1, 3 ) ); //顯示bc alert ( str.substring ( 1, 3 ) );