如图,已有apikey和地址。用jquery的ajax写,不知道如何添加apikey,所以一直提示missins apikey.
网上也找了很久,没有这方面的资料。
如图,已有apikey和地址。用jquery的ajax写,不知道如何添加apikey,所以一直提示missins apikey.
网上也找了很久,没有这方面的资料。
http://api.jquery.com/jquery.ajax/
data
Type: PlainObject or String or Array
Data to be sent to the
server. It is converted to a query string, if not already a string.
It's appended to the url for GET-requests. See processData option to
prevent this automatic processing. Object must be Key/Value pairs. If
value is an Array, jQuery serializes multiple values with same key
based on the value of the traditional setting (described below).
10 回答11.2k 阅读
5 回答4.9k 阅读✓ 已解决
4 回答3.2k 阅读✓ 已解决
2 回答2.8k 阅读✓ 已解决
3 回答2.4k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
文档里说了,apikey作为请求参数是放在header里传递的。
使用jquery的话可以查看官方文档添加header的方法:
而ip参数则正常地放在url Param里传递