I write a c*+ class of XMLHTTPRequest, and I want to bind it to js, the onreadystateCallback need to be call by C*+ async, but I don’t know how to do it , Can some one give me a same codes, Thanks very much!
From time now, I write a simple bound lib to ajax, just can work. If some one want to ajax lib in jsbinding, can use and modify it free at here git@github.com:zj831007/jsbtest.git
Justin Zhang wrote:
I write a c*+ class of XMLHTTPRequest, and I want to bind it to js, the onreadystateCallback need to be call by C*+ async, but I don’t know how to do it , Can some one give me a same codes, Thanks very much!
怎么能把onreadystatechange绑定到当前XMLHttpRequest的JS对象上?而不是全局的函数 var http = new XMLHttpRequest(); http.onreadystatechange
The new version of cocos2dx-2.1.4 has support this feature and you can try it.
庆林 张 wrote:
怎么能把onreadystatechange绑定到当前XMLHttpRequest的JS对象上?而不是全局的函数 var http = new XMLHttpRequest(); http.onreadystatechange