【问题标题】:JQuery EasyUI datagrid url being called with a POST even when method=GET即使方法 = GET,也使用 POST 调用 JQuery EasyUI datagrid url
【发布时间】:2013-04-19 09:30:33
【问题描述】:

我刚刚开始使用 JQuery 和 easyui。 datagrid 控件看起来超级棒,但每次都使用 POST 调用我的 URL,即使我将方法设置为 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>

谁能帮我解决这个问题?

科马克·基奥

【问题讨论】:

    标签: jquery datagrid


    【解决方案1】:

    同样的问题。

    我通过添加:data-options="method: 'get'" 来解决它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多