问题
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