2013-01-31 33 views

回答

1

如果你看看他們的javascript文件,你可以看到他們設置:

// listener to overload 
this.onopen = null; 
this.onmessage = null; 
this.onerror = null; 
this.onclose = null; 

你應該設置這些是你想被稱爲實現。例如。

their_object.onopen = function (openObject) { 
    // Your code here. 
}