我正在尝试将一个接受标头添加到使用"jsonp"的jQuery AJAX GET请求中dataType,但由于某种原因它无效.到目前为止,这是我的代码.
var e4json = JSON.stringify( {
"thomas_smith106" : "Daniel244",
"transaction_type" : "34",
"transaction_tag" : "902006933",
"authorization_num" : "ET4653",
"amount" : "15.75"
} );
$.ajax ({
url: "https://api.demo.globalgatewaye4.firstdata.com",
type: "GET",
headers : {
'accepts' : 'application/json'
},
data: e4json,
dataType: "jsonp",
success: function (response) {
alert('Successfuly called the e4 gateway api');
}
});
Run Code Online (Sandbox Code Playgroud)
我尝试了很多东西,但似乎没有任何工作.我查看了jQuery网站上的文档,但我找不到任何好的例子.
这是我的请求标题.我需要接受标头为'application/json'.
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:_fd_session=d69310c5cd4a02a4700b5ba63f0d0c9b
Host:api.demo.globalgatewaye4.firstdata.com
Referer:http://localhost:8080/smart-two-site/customerinfo.html
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36 …Run Code Online (Sandbox Code Playgroud) 我一直在网上寻找,但似乎找不到解决这个问题的方法。我的docker实例的存储驱动程序是overlay2,我需要增加新容器的默认存储空间。
我唯一能找到的是使用 --storage-opt 标志,但根据他们的文档......
对于overlay2存储驱动程序,仅当支持文件系统为xfs并使用pquota安装选项安装时,大小选项才可用
我当前的支持文件系统是 extfs,因此此选项不起作用。有人知道我将如何在 Mac 上执行此操作吗?