dojo.xhrGet({
url:"setAll.do?account=<%=request.getParameter("account")%>&dt="+dt,
handleAs:"text",
load:function (response,ioArgs){

alert(response);
return response;
},
error:function (response,ioArgs){
console.error("Http status code:",ioArgs.xhr.status);
return response;
}
});
这个dojo.xhrGet里面 为什么还要加个大括号,还有 这个dojo.xhrGet是干什么的详细点 谢谢了.

解决方案 »

  1.   

    {}中的内容,就是一个对象,去百度一下JSON格式吧
      

  2.   

    http://www.ibm.com/developerworks/cn/web/wa-lo-json/?ca=drs-tp3308
    这里是比较全面的介绍
      

  3.   

    这是json格式, 即 名-值对格式, key-value在js中大量被使用, 因为它使用简单明了.实际上一个大括号就是一个对象
    例如:
    var human = {name: "heibai", age: 22, eat: function(){//eat something}};名值对用逗号隔开.