如何判断D2这个下拉框控件是否为空?
if(JSON.stringify(_g().getCellValue(0,3,1))=="{}")
这个的结果是false,if(len(D2)==0)也会报错
if(JSON.stringify(_g().getCellValue(0,3,1))=="")
这样判断就可以,取值后就不是对象和数组了,就是空字符
你是什么版本的?
参考这个
https://help.fanruan.com/finereport10.0/doc-view-4007.html