- var ConnectionSer = function(){
- try {
- var heads = new Request.JSON({
- url: 'heads.aspx',
- onComplete: function(res,text){
- var json = JSON.decode(text);
- //alert(json[0].photo)
- }
- }).send();
- } catch (ex) {
- alert(ex.message)
- }
- }
mootools的ajax组建Request.JSON使用方法
