var t=contentPane.getWidgetByName('kk').getValue(); var url="http://localhost:8075/webroot/decision/view/report?viewlet=GettingStarted.cpt"; var config={地区:"华北"}; var target="_blank"; var feature={width:800,height:450}; if(t.replace(/\s/g,"").length ==0) { alert('不能为空,请输入...'); return false; }else{ alert('不能为空,请输入...'); FR.doHyperlinkByGet(url,config,target,feature); return false; } 为空正常,但是不为空下面函数出错,但是下面函数单独运行是正确的 |