php中使用easyui datagrid的问题

WBOY
Release: 2016-06-23 13:59:52
Original
761 people have browsed it

<table id="adg"  class="easyui-datagrid" style="width:410px;height:auto" data-options="  url: 'daily_all_area.php',  singleSelect: true " > <thead>  <tr><th field="area_no" width="100"  formatter="getArea"><strong>Region Name</strong></th> <th field="daily_quantity_area" width="80" align='right'><strong>Quantity</strong></th> </tr> </thead> </table>
Copy after login

一般在使用datagrid时url填写的是个生成json的php文件。这个url如果想换成个生成json的方法该怎么写?


回复讨论(解决方案)

散分咯 来接分

解决啦?
潜水那么久

解决啦?
潜水那么久
嗯 用的很原始的方法 url: 'daily_all_area.php?type=xxx'
再在后台用$_request['type'], 根据不同type调用不同方法

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template