如果是两个参数应该怎么写啊
赞 0 2020-03-23 14:05
如果需要用参数a,b来筛选,参考这种写法 var a=_g().getWidgetByName('a').getValue(); var b=_g().getWidgetByName('b').getValue(); this.options.form.getWidgetByName("report0").gotoPage(1,"{a:'"+a+"',b:'"+b+"'",true);
赞 1 2022-03-04 16:10
你好,多个参数用逗号分隔,但是JS写的话得注意下参数的拼接,引号这块比较容易出问题。 this.options.form.getWidgetByName("report0").gotoPage(2,"{month:12, name:'FR'}",true);
赞 3 2020-03-23 14:50
你好,用这种方法,复选框选一个选项时参数值有变化,选两个或以上的选项时,参数值没有变化,是什么原因呢
赞 0 2023-08-23 16:01
42 评论
如果是两个参数应该怎么写啊
赞 0 2020-03-23 14:05
如果需要用参数a,b来筛选,参考这种写法
var a=_g().getWidgetByName('a').getValue();
var b=_g().getWidgetByName('b').getValue();
this.options.form.getWidgetByName("report0").gotoPage(1,"{a:'"+a+"',b:'"+b+"'",true);
赞 1 2022-03-04 16:10
你好,多个参数用逗号分隔,但是JS写的话得注意下参数的拼接,引号这块比较容易出问题。
this.options.form.getWidgetByName("report0").gotoPage(2,"{month:12, name:'FR'}",true);
赞 3 2020-03-23 14:50
你好,用这种方法,复选框选一个选项时参数值有变化,选两个或以上的选项时,参数值没有变化,是什么原因呢
赞 0 2023-08-23 16:01