用jquery easyui treegrid 写了一个简单的tree结构,但是用treegrid('reload');重新加载数据时,在IE浏览器下,不行,但是在其他的浏览器(火狐,谷歌,opera)下,就可以重新加载。
下面是页面的代码:
data-options="
width:482,
height:447,
top:-30,
iconCls: 'tree-folder',
rownumbers: true,
animate: true,
collapsible: true,
fitColumns: true,
url: '../ajax?sid='+threadSID+'&cmd=PCPM_GET_CBS',
method: 'get',
idField: 'id',
treeField: 'no',
onDblClickRow:function(){modify();},
onClickRow:function(){save();},
toolbar:[{
text:'新建',
iconCls:'icon-add',
handler:function(){append();}
},'-',{
text:'删除',
iconCls:'icon-remove',
handler:function(){remove();}
},'-',{
text:'保存',
iconCls:'icon-save',
handler:function(){save();}
},'-',{
text:'取消',
iconCls:'icon-undo',
handler:function(){cancel();}
}]
">
no |
name |
将 data-options 里面的 method 又“get"改为”post“,就可以了,IE下也没有问题,请问这个具体原理是什么? strong text