使用官网ToJSON自带的样例执行会报错,即如下3行代码,
let doc = Api.GetDocument();
let json = doc.ToJSON(true, true, true, true, true, true);
let docFromJSON = Api.FromJSON(json);
报错:
TypeError: Cannot read properties of undefined (reading ‘r’)
使用官网ToJSON自带的样例执行会报错,即如下3行代码,
let doc = Api.GetDocument();
let json = doc.ToJSON(true, true, true, true, true, true);
let docFromJSON = Api.FromJSON(json);
报错:
TypeError: Cannot read properties of undefined (reading ‘r’)
我用的是mac桌面版version 9.0.4
如果是用的window版本没有该问题
你好!
请发一下你截图中所用方法的文档链接(你是使用我们文档里的示例吗?)
我们通过 Macros 在 MacOS 上的 9.1 版本测试了代码,一切正常。请您在 9.1 版本上重新检查情况,或者提供该场景的详细操作步骤。