如果js中的括号没有关闭,或者不匹配,标签没有正常结束的时候就可能会出现如下错误:
02:43:15,207 ERROR [MinifierUtil:74] JavaScript Minifier failed for $(function() { var employeeId = $("#employeeFm").find("input[name='employee.employeeId']:hidden").val(); var collectMenu = $("#collectMenu li a:not(:first)") ; if(employeeId==0){ collectMenu.removeAttr("href"); collectMenu.each(function(){ $(this).get(0).οnclick=null; }); collectMenu.bind("click", function(){ alert("请先填写并且保存基本信息!"); return false; }); $("#employeeFm").find("input[name='employee.templateId']:hidden").val(''); }
仔细检查代码,关闭相应的标签或者括号。