关于除法好像不够准确 2/3的结果为0.66 应该这样写return n2 === 0 ? 0 : Math.floor(Math.round((n1 / n2) * 100)) / 100
点赞

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务