|
|
@ -55,6 +55,7 @@ |
|
|
|
setOverflow($(doc.documentElement)); |
|
|
|
setOverflow($(doc.documentElement)); |
|
|
|
setOverflow($(doc.body)); |
|
|
|
setOverflow($(doc.body)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function setOverflow(cc) { |
|
|
|
function setOverflow(cc) { |
|
|
|
if (!o.showOverFlowX) { |
|
|
|
if (!o.showOverFlowX) { |
|
|
|
cc.css('overflow-x', 'hidden'); |
|
|
|
cc.css('overflow-x', 'hidden'); |
|
|
@ -68,7 +69,7 @@ |
|
|
|
console && console.log("error"); |
|
|
|
console && console.log("error"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// IE里面需要设置rowspan为1才能正常显示....否则会跳过n行不显示,chrome应该是bug,一会儿好一会儿不好
|
|
|
|
// IE里面需要设置rowspan为1才能正常显示....否则会跳过n行不显示,chrome应该是bug,一会儿好一会儿不好
|
|
|
|
if ($.browser.msie && (this.$iframe.parent()).is("div") |
|
|
|
if ($.browser.msie && (this.$iframe.parent()).is("div") |
|
|
@ -159,16 +160,15 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
// 模板
|
|
|
|
// 模板
|
|
|
|
if (this.options.sourceType == 'tpl') { |
|
|
|
if (this.options.sourceType == 'tpl') { |
|
|
|
|
|
|
|
var cpParas = {}; |
|
|
|
$.each(paras, function (pName, pValue) { |
|
|
|
$.each(paras, function (pName, pValue) { |
|
|
|
if (FR.isArray(pValue)) { |
|
|
|
//后端没有encode,那就前端做
|
|
|
|
paras[pName] = pValue; |
|
|
|
cpParas[encodeURIComponent(pName)] = encodeURIComponent(pValue); |
|
|
|
} else { |
|
|
|
|
|
|
|
paras[pName] = encodeURIComponent(pValue); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
src += "__parameters__=" + FR.cjkEncode(FR.jsonEncode(paras)); |
|
|
|
src += "__parameters__=" + encodeURIComponent(FR.jsonEncode(cpParas)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$.each(paras, function (name, value) { |
|
|
|
$.each(paras, function (name, value) { |
|
|
|
|
|
|
|
// web链接的参数不进行额外处理。
|
|
|
|
if (typeof(name) === 'string') { |
|
|
|
if (typeof(name) === 'string') { |
|
|
|
src += name + "=" + value + "&"; |
|
|
|
src += name + "=" + value + "&"; |
|
|
|
} |
|
|
|
} |
|
|
|