您的位置:首页 > 运维架构

open flash chart data-file多参数传递

2013-03-15 18:08 309 查看
使用javascript方式调用open-flash-chart,data-file如果是url网页路径传递多个参数,需要使用escape()方法。

默认open-flash-chart会把“&”解析成 %26

 

example:  

swfobject.embedSWF("swf/open-flash-chart.swf", "divid", "100%", "350", "9.0.0", "expressInstall.swf", { "data-file": escape("${base}/ad/getReportForms.action?flashChart=2&tag=${tag}&userId=${userId}&adId=${adId}&dateType=${dateType}&startTime=${startTime}&endTime=${endTime}&selectTime=${selectTime}")});


 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: