JQuery EasyUI datagrid url being called with a POST even when method=GET

一曲冷凌霜 提交于 2019-12-24 19:03:47

问题


I am just starting out JQuery and easyui. The datagrid control looks super but my URL is being called with a POST everytime, even though I am setting the method to GET.

 <table id="dg" title="Plan details" class="easyui-datagrid" style="width:550px;height:250px"
    url="/Plans"
    toolbar="#toolbar"
    method="GET"
    rownumbers="true" fitColumns="true" singleSelect="true">
  <thead>
    <tr>
            <th field="name" width="50">Name</th>
            <th field="description" width="100">Description</th>
    </tr>
  </thead>
</table>
<div id="toolbar">

</div>

Can anyone help me with this ?

Cormac Keogh


回答1:


Same problem here.

I solved it by adding: data-options="method: 'get'" instead.



来源:https://stackoverflow.com/questions/16101497/jquery-easyui-datagrid-url-being-called-with-a-post-even-when-method-get

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