【发布时间】:2011-09-29 18:51:24
【问题描述】:
function handler1(data) { }
function objectA {
this.handler2 = function(data) { }
}
我可以调用 JSONP 页面并使用 handler1 函数接收数据。但我需要使用 OOP。如何调用 JSONP 页面并使用 objectA.handler2 函数接收数据?
【问题讨论】:
标签: javascript jsonp
function handler1(data) { }
function objectA {
this.handler2 = function(data) { }
}
我可以调用 JSONP 页面并使用 handler1 函数接收数据。但我需要使用 OOP。如何调用 JSONP 页面并使用 objectA.handler2 函数接收数据?
【问题讨论】:
标签: javascript jsonp
以同样的方式,-objectA_instance.handler2( data )。没什么特别的。
【讨论】: