Tho*_*asP 1 jquery callback highcharts
我是关于jquery,highchart等的新手......
为什么回调带有"?" 作为以下代码中的参数:
$.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename='+ name.toLowerCase() +'-c.json&callback=?', function(data) {
seriesOptions[i] = {
Run Code Online (Sandbox Code Playgroud)
我不明白"?"的含义 ?为什么不简单地使用一个明确的名称,如"callback_name"或"johndoe"?
我可以用以下方法替换它:
url = 'sonde_exp_json.php?sonde_id=' + name + '&callback=?';
$.getJSON(url, function (json_data) {
....
Run Code Online (Sandbox Code Playgroud)