mmenu.debugger.js错误:缺少;声明前

问题描述

当我通过Apache Ant库构建js文件时(我使用的命令是“ ant clean all”或“ ant build”),mmenu.debugger.js库文件中出现语法错误

出现错误代码范围:

[
  'setPage','openPanel','closePanel','closeAllPanels','setSelected'
].forEach(method => {
            this.bind(method + ':before',method => {
                if (typeof panel != 'undefined' && panel instanceof jQuery) {
                    deprecated(
                        'Passing a jQuery object as an argument to the "' +
                            method +
                            '" API method','a HTMLElement','8.0.0'
                    );
                }
            });
        }); 
if (typeof panel != 'undefined' && panel instanceof jQuery) {

缺少;该if行中的before语句错误

注意:deprecated()是此文件中的一个函数

解决方法

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

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

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