我对JQuery Ajax很新。
下面的代码总是返回错误函数。难道我做错了什么?我可以使用firebug在响应头中看到json数据我无法使成功函数起作用。
Nested Loop (cost=1.03..946.65 rows=79 width=1129) -> Seq Scan on sample_table2 st2 (cost=0.00..10.88 rows=1 width=1092) Filter: (table1_id = '1'::numeric) -> Subquery Scan on st1 (cost=1.03..934.98 rows=79 width=37)
Filter: (st1.id = '1'::numeric) -> Hash Join (cost=1.03..738.11 rows=15750 width=37) Hash Cond: ((st1_1.tenant_id)::name = pg_authid.rolname) -> Seq Scan on sample_table1 st1_1 (cost=0.00..578.00 rows=31500 width=37) -> Hash (cost=1.01..1.01 rows=1 width=68) -> Seq Scan on pg_authid (cost=0.00..1.01 rows=1 width=68) Filter: pg_has_role("current_user"(), oid, 'member'::text);
答案 0 :(得分:0)
您确定您使用JSONP请求的来源实际上支持JSONP吗?
调用url http://ec.europa.eu/budg/inforeuro/api/public/monthly-rates?callback=foo(注意回调参数)时,服务器的响应不包含有效的JSONP响应(包含对foo
函数的调用)。