EASYUI combotree的问题 10
HTML代码<inputid="authorlist"name="authorlist"class="easyui-combotree"data-options="url...
HTML代码<input id="authorlist" name="authorlist" class="easyui-combotree" data-options="url:'../page/get_page_combo.php',method:'get',multiple:true,required:true">../page/get_page_combo.php的返回值:[{"id":0,"text":"\u6240\u6709\u6743\u9650","children":[{"id":"1","text":"\u9875\u97621","children":[{"id":"3","text":"\u9875\u976211"},{"id":"5","text":"\u9875\u976212"}]},{"id":"2","text":"\u9875\u97622","children":[{"id":"4","text":"\u9875\u976221"},{"id":"6","text":"\u9875\u976222"}]}]}]测试JQ代码:$('#authorlist').combotree({ onChange: function(){ var $v=$('#authorlist').combotree('getValues'); alert ($v); }});测试结果:所选择的结果为0,1,3,5,2,4,6如图后台处理$authorlist = $_REQUEST['authorlist'];传递到后台的数据是0,而不是0,1,3,5,2,4,6。求高手支招,谢谢
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询