Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Google Charts API中传递带有参数的URL_Url_Google Visualization - Fatal编程技术网

在Google Charts API中传递带有参数的URL

在Google Charts API中传递带有参数的URL,url,google-visualization,Url,Google Visualization,我想用谷歌图表API生成一个QrCode图像。QrCode包含一个带有多个参数的URL http://example.com/page.php?param=nothing&param2=nothing 生成此代码的Google图表URL为 http://chart.apis.google.com/chart?cht=qr&chs=230x230&choe=UTF-8&chld=L&chl=*http://example.com/page.php?para

我想用谷歌图表API生成一个QrCode图像。QrCode包含一个带有多个参数的URL

http://example.com/page.php?param=nothing&param2=nothing
生成此代码的Google图表URL为

http://chart.apis.google.com/chart?cht=qr&chs=230x230&choe=UTF-8&chld=L&chl=*http://example.com/page.php?param=nothing**&param2**=nothing*
但这不起作用。显然,浏览器认为PARAM2是原始URL的一部分。

有什么破解方法可以解决这个问题吗?

看看这个。完整呼叫如下所示:

https://www.google.com/jsapi/chart?cht=bvs&chs=500x500&chd=t:100,200,300,400,500,600,700&chds=0,700&chl=Savings|Checking|Money Market|Taxable Stocks|Taxable Bonds|IRA|Pension

该URL应为:
http://chart.apis.google.com/chart?cht=bvs&chs=500x500&chd=t:100,200300400500600700&chds=0700&chl=储蓄|支票|货币市场|应税股票|应税债券| IRA |养老金
Market |应税股票|应税债券| IRA |养老金