MCPcopy
hub / github.com/mengkunsoft/MKOnlineMusicPlayer / addListbar

Function addListbar

js/functions.js:576–600  ·  view source on GitHub ↗
(types)

Source from the content-addressed store, hash-verified

574// 加载列表中的提示条
575// 参数:类型(more、nomore、loading、nodata、clear)
576function addListbar(types) {
577 var html
578 switch(types) {
579 case "more": // 还可以加载更多
580 html = '<div class="list-item text-center list-loadmore list-clickable" title="点击加载更多数据" id="list-foot">点击加载更多...</div>';
581 break;
582
583 case "nomore": // 数据加载完了
584 html = '<div class="list-item text-center" id="list-foot">全都加载完了</div>';
585 break;
586
587 case "loading": // 加载中
588 html = '<div class="list-item text-center" id="list-foot">播放列表加载中...</div>';
589 break;
590
591 case "nodata": // 列表中没有内容
592 html = '<div class="list-item text-center" id="list-foot">可能是个假列表,什么也没有</div>';
593 break;
594
595 case "clear": // 清空列表
596 html = '<div class="list-item text-center list-clickable" id="list-foot" onclick="clearDislist();">清空列表</div>';
597 break;
598 }
599 rem.mainList.append(html);
600}
601
602// 将时间格式化为 00:00 的格式
603// 参数:原始时间

Callers 3

ajaxSearchFunction · 0.85
functions.jsFile · 0.85
loadListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected