企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## rpop 从列表右端弹出一个值 ``` const Controller = require('think-js-lib').Controller class HelloController extends Controller { // 用于演示 restful api 接口功能 async sayHello(ctx) { let result = await this.RDb().rpop('message') return this.showSuccess(result) } } module.exports = HelloController ``` > 注意:需要配合 ``async`` ``await`` 变成同步的方式调用