Open-flash-chart与PHP交互Get传参

open-flash-chart请求PHP,多参数解决方式,将URL中的“&”转换成“%26”。例子如下:

Javascript

var data_url = "http://localhost/test.php?a=a&b=b&c=c"; data_url = data_url.replace(/&/g,"%26"); swfobject.embedSWF("open-flash-chart.swf", "ofc_chart", "600", "250", "9.0.0", SWFINSTALL, {"data-file": data_url});

 

你可能感兴趣的:(PHP,url)