代码改进，去掉js警告“finally block does not complete normally”