Home  >  Article  >  Backend Development  >  求个php+ajax+easyUI datagrid的简略完整的demo

求个php+ajax+easyUI datagrid的简略完整的demo

WBOY
WBOYOriginal
2016-06-13 12:29:38691browse

求个php+ajax+easyUI datagrid的简单完整的demo
如题,求个用ajax局部刷新easyUI数据表格的实例,简单完整就好看你js版块的帖子 使用easyui-grid控件的updateRow方法进行指定行的更新来达到局部更新的作用

<br />
$('#dg').datagrid('updateRow',{<br />
	index: 2,<br />
	row: {<br />
		name: 'new name',<br />
		note: 'new note message'<br />
	}<br />
});<br />

其row的数据由ajax请求得到(你在php里面最好返回的是json格式,而不是xml)   再使用该方法去局部更新,其他详情自己看官方doc

Statement:
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