微信小程序怎么连接phpmyadmin?
module.exports = async (ctx, next) => {
const { mysql } = require('../qcloud')
await mysql('wumai').select('*').then(res => {
ctx.state.data = "nihao"+res
})
}
返回的结果是如下:
{code: 0, data: "nihao[object Object]"}
相似问题