标签
* @param title
* @returns {*}
*/
function replaceBR(title) {
if (title) {
title = title.replace(/
|
/g, "");
}
return title;
}
/**
* 获取频道下链接:
* 根据频道代码加载超链接
* showId:显示的容器id
* chlCode:频道代码
* linkType: 0=文字链接,1=图片链接
* skipNo: 开始查询的下标
* pageSize: 每页大小
*/
function loadLinks4Show4Bgt(showId, chlCode, linkType, skipNo, pageSize) {
var Item = new Object();
Item.orgCode = '000001';
Item.chlCode = chlCode;
Item.linkType = linkType;
Item.skip = skipNo;
Item.pageSize = pageSize;
$.ajax({
url: "/cmsLink/getLinks4Show4Bgt.json",
type: "POST",
data: JSON.stringify(Item),
dataType: "json",
async: true,
contentType: "application/json; charset=utf-8",
success: function (result) {
var data = result.resultData;
if (null != data && data.length > 0) {
var html = "";
var url = "";
if ("lzw_m_zt" == showId ) {
for (var i in data) {
url = data[i].show_link_url;
url = url.replace('list.jsp','listMobile.html');
if(i%2!=0){
html +='