开发者

arguments.length works but not argument[0].value

开发者 https://www.devze.com 2023-01-08 13:20 出处:网络
I am trying to get a value of the response I check arguments.length and it says 1 and works but when I do arguments[0].value开发者_如何学C or arguments[0].responseText it doesn\'t work... it says unde

I am trying to get a value of the response I check arguments.length and it says 1 and works but when I do arguments[0].value开发者_如何学C or arguments[0].responseText it doesn't work... it says undefined.... how do I get the values?


I don't think there's enough information in this question to properly answer you... but I'm guessing that the arguments list isn't of the type you think it is. arguments[0] probably just doesn't have a value or responseText attributes.

Download and install Firebug for Firefox and then console.log(arguments[0]) or just arguments. See what properties it actually has. (or just alert it)

0

精彩评论

暂无评论...
验证码 换一张
取 消