方法一: '123456'.split('')[2]; 方法二: '123456'.match(/\d{2}(\d)/)[1]; 方法三: '123456'.replace(/^\d{2}(\d).*$/,'$1');
方法一:
方法二:
方法三: