sequelize模糊查询
2018-08-17 本文已影响0人
三人_
var Sequelize = require('sequelize);
var Op = Sequelize.Op;
User.findAll({
where: {
username: {
[Op.like]: '%放%'
}
},
offset: 0,
limit: 10
})