dojo中的xhrPost请求(JSON)
发布时间:2020-12-16 21:30:48 所属栏目:百科 来源:网络整理
导读:dojo中的xhrPost请求 dojo.xhrPost({ url:"../area.action", content:{ areaCode:areaCode }, handleAs:'json', handle:function(resp){ console.info(resp.items); //返回成功处理 } }); 说明:(1)url:请求路径,可以是action或者json (2)content:传
dojo中的xhrPost请求
dojo.xhrPost({ url:"../area.action", content:{ areaCode:areaCode }, handleAs:'json', handle:function(resp){ console.info(resp.items); //返回成功处理 } });
说明:(1)url:请求路径,可以是action或者json (2)content:传参数,前者是Java传参数,后者是页面参数 (3)handleAs:请求方式 (4)handle:成功返回结果后处理情况 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- postgresql – 具有PostGIS的通用GEOGRAPHY列
- dart – Flutter – 容器中的顶部对齐文本
- ajax实例2之DWR
- SQLite 常见问题(FAQ)
- oracle – 在SQLPlus中使用SPOOL时,数据行之间的空白行显示
- c# – WCF DataContracts中的INotifyPropertyChanged
- AJAX with JSP and Servlet using Jquery Example
- swift – NSDateFormatter在OS X和iOS中检测24小时制
- 可扩展部分UITableView IndexPath SWIFT
- 正则表示式30分钟入门