日期:2014-05-16  浏览次数:20370 次

jqueryeasyui combobox提交方式更改
$('#xxxx').combobox({
           onChange:function(newValue,oldValue){
         $('#xxxx').combobox({
                width:'120',  
                url:'xxxx/xxxxx?xxxxx='+newValue+",
                valueField:'xxxxx',   
                textField:'xxxxx'
            }).combobox('clear'); 
         }
      });


combobox提交一直是get请求,我想更改为post请求,如何做?比较加method:'post'还是怎么样?method:'post'这个我实验了一下,没有实现效果。

------解决方案--------------------
 url:'xxxx/xxxxx?xxxxx='+newValue+,

你直接加到url后面,xxxxx这成那就是get提交的,至于请求方法

jquery-easyui-1.3.1默认提交方法为post,低于1.3.1的好像没有办法指定提交方法,除非修改源代码