兼容性测试工具报告显示异常,打开Chrome浏览器开发者工具,发现有“structuredClone is not defined”或“Uncaught SyntaxError: Unexpected token '.'”报错。
兼容性测试报告部分代码在较低版本的浏览器上无法解析。
“structuredClone is not defined”报错的处理步骤:
const dataCopy = JSON.parse(JSON.stringify(pipelineData[target]?.[`${target}_tb_data`]));
“Uncaught SyntaxError: Unexpected token '.'”报错的处理步骤: