【发布时间】:2015-11-24 21:04:46
【问题描述】:
给定一个 XMLHttpRequest,我怎样才能发现它的请求方法?这对于回调获取有关原始调用的上下文很有用。
xhr = new XMLHttpRequest()
xhr.open('post', 'http://example.com', true)
xhr.??? // should return 'post'
【问题讨论】:
标签: javascript http networking xmlhttprequest