await this.firstJsdk.ready();
debugger
let app = this.firstJsdk.Application
// 1. 搜索并高亮文本
const findResult = await app.ActiveDocument.Find.Execute('南京', true);
// 2. 获取位置信息
const { pos } = findResult[0];
// 3. 获取区域对象
const range = await app.ActiveDocument.Range.SetRange(pos, pos);
// 4. 滚动文档窗口, 显示指定的区域
await app.ActiveDocument.ActiveWindow.ScrollIntoView(range);
const { pos } = findResult[0]; 这个要不要判断查找结果的个数,再注意看看索引是否从1开始
我也遇到了这个问题 请问解决了吗
sdk版本换成1.x可以解决