`
yushui77
  • 浏览: 7830 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

liberay 报 ERROR [MinifierUtil:74] JavaScript Minifier failed for

阅读更多

          如果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).onclick=null;
	   });
	   collectMenu.bind("click", function(){
		   alert("请先填写并且保存基本信息!");
		   return false;
	   });
	   $("#employeeFm").find("input[name='employee.templateId']:hidden").val('');
   }

       仔细检查代码,关闭相应的标签或者括号。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics