Bab*_*med 3 javascript jquery head
在我的代码中,我有请求类型,HEAD但实际上我不知道有关它的详细信息。代码是这样的:
function fileExists(pUrl)
{
let fileExist = false;
$.ajax({
url:pUrl,
type:'HEAD',
async:false,
success: function()
{
//file exists
fileExist = true;
},
error: function()
{
//file not exists
fileExist = false;
}
});
return fileExist;
}
Run Code Online (Sandbox Code Playgroud)
谁能告诉我关于HEAD? 提前致谢
| 归档时间: |
|
| 查看次数: |
1760 次 |
| 最近记录: |