确定
"; } else //小图 { htmlInStr += "
\""

" + rowData[ccItem].short_name + "

"; if(rowData[ccItem+1]) { htmlInStr += "
\""

" + rowData[ccItem + 1].short_name + "

"; ++ccItem; } htmlInStr += "
" } }catch(err){ //console.log(err) } } htmlInStr += ""; } document.getElementById("listSelId").innerHTML = htmlInStr; } //页码 结合 listConfigSeed 生成 参数指定页的 大图配置; 每次渲染前进行重新计算 function generateListConfig(pageNum){ var newListConfig = []; for(var counter = 0; counter < listConfigSeed.length; ++counter){ newListConfig.push((listConfigSeed[counter] + pageNum) % numOfColums); // !!保证多次浏览到相同内容 大图位置固定 } if(pageNum === 1) { newListConfig[0] = PROMOT_LOCAION; } return newListConfig; } $("#selSrr").focus(function(event){ //搜索框 $(this).addClass("sel-nf-keyFocus").prev().hide(); }).blur(function(){ if(!$(this).val()) { $(this).prev().show(); } $(this).removeClass("sel-nf-keyFocus"); }); var curParam = doURLParaObj(); var addParam = {"client_width":clientWidth}; $("#gotoPageBtn").click(function(){ var page = parseInt($("#pgNum").val()); if(page <= 0) { page = 1; } page = (page >>> 0); if(page <= 0) { page = 1; } else if(page > numOfPages) { page = numOfPages; } addParam.page = page; var lastParam = changeObjAttr(curParam , addParam); window.location.href = "http://" + window.location.host + "?" + produceURLQueryString(lastParam); }); $("#paginationId").click(function(event){ //切换 页面内容 $target = $(event.target); var newPageNum = ($target.text() >>> 0); if(newPageNum){ addParam.page = newPageNum; } else { var index = $target.index(); if(!index) { addParam.page = 1; } else { addParam.page = numOfPages; } } var lastParam = changeObjAttr(curParam , addParam); if($target.hasClass("sel-p-indicator")) { window.location.href = "http://" + window.location.host + "?" + produceURLQueryString(lastParam); } }); });