【发布时间】:2011-09-28 00:34:52
【问题描述】:
function JsonCall() {
JsonClient.setRequestHeader("Content-type", "application/json");
JsonClient.send(Data);
JsonClient.onload = function() {
SomeOtherFunction(this.responseText);
}
}
// This function is in someother class.
var Object = {
SomeOtherFunction: function() {
return data;
}
}
- 我的 JsonCall 函数是什么 返回?
- 我能做些力所能及的事吗 从 onLoad 调用返回值 Json 对象?
我想在我的其他类中做一些逻辑并通过这个 JsonCall 函数返回值
【问题讨论】:
-
@Felix Kling:developer.appcelerator.com/apidoc/mobile/1.2/…
标签: javascript json