报错信息如下

我是按照官方文档写的,具体代码如下:
打印res发现这个值为null,为什么啊?
6***@qq.com (作者)
解决了。。。
得这样写
const query = uni.createSelectorQuery().in(this);
query.select('#editor').context((res) => {
this.editorCtx = res.context
}).exec()