简体   繁体   中英

Dojo Ajax post to send non form data


I have a requirement where I need to send a JSON Array along with the form data in an ajax post call using Dojo xhrPost . This JSON Array is not part of the form that is being submitted through this post call. Any suggestions on how to do this?
Thanks

您可以使用dojo.formToJson将表单数据转换为JSON,然后将结果添加到JSON数组中已经存在的JSON值,最后将JSON数组发布到服务器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM