如何解决此错误“未捕获的SyntaxError:标识符'docUrl'已被声明”?

问题描述

长时间工作后,昨晚我在Chrome浏览器的Inspect控制台面板上开始看到此错误

ch-content-script.js:1中的“未捕获的SyntaxError:标识符'docUrl'已经声明”

单击脚本名称和行号在源面板中显示以下内容

/*************************************************************************
 * AdobE CONFIDENTIAL
 * ___________________
 *
 *  copyright 2015 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 * NOTICE:  All information contained herein is,and remains
 * the property of Adobe Systems Incorporated and its suppliers,* if any.  The intellectual and technical concepts contained
 * herein are proprietary to Adobe Systems Incorporated and its
 * suppliers and are protected by all applicable intellectual property laws,* including Trade secret and or copyright laws.
 * dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Adobe Systems Incorporated.
 **************************************************************************/
 var $iframe,... const docUrl=document.location.href; ...

很显然,常量docURL已经在此声明之前全局声明,或者在同一脚本行中再次声明。

该脚本似乎来自Adobe。

我没有在自己的代码中使用此标识符,并且没有在我的Web应用程序中包含带有

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)