如何解决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 举报,一经查实,本站将立刻删除。