Ajax HEAD request via Javascript/jQuery

前端 未结 5 2080
暖寄归人
暖寄归人 2020-11-27 19:27

I seem to be having some issues with making HEAD requests, and preserving the integrity of data in an array.

Given this snippet:

var ima         


        
5条回答
  •  囚心锁ツ
    2020-11-27 20:24

    If anyone still having trouble with this, and since this post is, like, 5 years-old already, here's a more 'modern' version of the answer: just use let instead of var in the original post's for loop.

    Info: Is there any reason to use the “var” keyword in ES6? and: MDN - Let syntax

提交回复
热议问题