findAll({ attributes: [[sequelize.fn('COUNT', ... 要给它一个别名来使其能够从模型中被访问(上面就是为聚合函数COUNT(hats)起了no_hats别名)。
確定! 回上一頁