我正在尝试直接使用 XMLHttpRequest 检索 url:
req = new XMLHttpRequest
req.onreadystatechange = ->
console.log req.readyState
if req.readyState == 1
console.log "sending..."
req.send
if req.readyState == 4
handler(req.response, req.status)
req.open("GET", info.srcUrl, true)
req.responseType = "arraybuffer"
但是我从来没有看到对象转换到1
readyState 之外。我错过了什么?