包含了Json.Remote类
MIT-style license.
| Json. Remote.js | 包含了Json.Remote类 |
| Json. Remote | 包装了XHR,可以自动发送和接收以Json格式存在的Javascript对象 |
包装了XHR,可以自动发送和接收以Json格式存在的Javascript对象。继承了 XHR的所有方法,属性,可选项,事件。
| url | 发送的目标url |
| options | 参考XHR类的可选项 |
var jSonRequest = new Json.Remote("http://site.com/tellMeAge.php",{onComplete: function(person){ alert(person.age); alert(person.height); alert(person.weight); }}).send({'name': 'John', 'lastName': 'Doe'});
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and tidy, and GeSHi
文档中文翻译:zarknight 勘误Email:zarknight@gmail.com