cptx 格式的报表,里面写的自定义js函数,用substr() ,预览的时候报表报错,有解决办法吗
新填报预览-https://help.fanruan.com/finereport10.0/doc-view-2194.html
cptx是不支持js获取,所以你cpt没报错,cptx报错了
自定义函数
https://help.fanruan.com/finereport/doc-view-698.html
它呢
substring
————————————————————————
function(){
var a=this;
if(a.length>2){
return a.substr(1,a.length/2)+"</br>"+ a.substr(a.length/2,a.length);
}else{
return a;
} }