topJson. Remote.js

包含了Json.Remote

License

MIT-style license.

Summary
Json. Remote.js 包含了Json.Remote
Json. Remote 包装了XHR,可以自动发送和接收以Json格式存在的Javascript对象

topJson. Remote

包装了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 asp之家