Ver código fonte

解决多次点击会出现2个毛高的问题。

wukai 11 meses atrás
pai
commit
acd173ff02
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      main.html

+ 1 - 0
main.html

@@ -2240,6 +2240,7 @@
                 }
                 var data = data.data;
                 var tbody = $("#maogaoWin table:last>tbody");
+                tbody.html('');
                 tbody.find("tr:gt(0)").remove();
                 var ls = [];
                 var tpl='<tr maogao="{height}" style="color: #FFFFFF;font-size: 20px;cursor: pointer;" title="点击可查看详情"><td width="33%">{height}</td><td width="1px" style="color: transparent">|</td><td width="33%">{num}</td><td width="1px" style="color: transparent">|</td><td width="33%">{percent}</td></tr>';