Authored by 张丽霞

相关资讯没有的情况下,造成detail.js代码错误,部分代码未执行

@@ -70,7 +70,9 @@ function initInfosEvt($container) { @@ -70,7 +70,9 @@ function initInfosEvt($container) {
70 if (typeof $container === 'undefined') { 70 if (typeof $container === 'undefined') {
71 return; 71 return;
72 } 72 }
73 - 73 + if (typeof $container[0] === 'undefined') {
  74 + return;
  75 + }
74 cHammer = new Hammer($container[0]); 76 cHammer = new Hammer($container[0]);
75 77
76 //点赞或者收藏事件 78 //点赞或者收藏事件