add函数中 tr += ` ${items[i].name} ${items[i].price.toFixed(2)} ` 每一行应该加''吧?
点赞

相关推荐

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