Angular 2 with JQuery DataTable Ajax Call

纵然是瞬间 提交于 2019-12-11 06:25:54

问题


I want to call an API from my Angular 2 application with Jquery DataTable Ajax call.

Request was successful but the parameters for the request been converted to Query String Parameters when i looked into Google Chrome Network tab it is like

=%7B&1=%22&2=T&3=a&4=b&5=l&6=e&7=S&8=c&9=h&10=e&11=m&12=a&13=%22&14=%3A&15=%22&16=T&17=1&18=%22&19=%7D&_=1487761201305

And when i call API from Angular 2 Http.post and looked into Google Chrome Network tab the request contains Request Payload its like

{TableSchema: "T1", RoleID: 1}

I want to send data like Angular 2 Http.post. How can i do from Jquery DataTable Ajax ?

来源:https://stackoverflow.com/questions/42389598/angular-2-with-jquery-datatable-ajax-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!