Jquery easyui 1.2.4中tabs新建标签设置href会提交两次请求,这个问题应该说是个挺严重的bug,换用1.2.3版本就没有这个问题。猜测easyui是修改了panel的加载机制或缓存机制吧,总之在options中添加closed: true这个属性就能够解决这个问题。不过以为有点奇怪的感受。以下示例:<div id="tt" class="easyui-tabs" style="width:500px;height:250px;"> <div title="Tab1" style="padding:20px;display:none;"> tab1 </div> <div title="Tab2" closable="true" style="overflow:auto;padding:20px;display:none;"> tab2 </div> <div title="Tab3" iconCls="icon-reload" closable="true" style="padding:20px;display:none;"> tab3 </div></div><a id="aa" class="easyui-linkbutton">aaa</a><script type="text/javascript"> $(function(){ $('#tt').tabs({ border: false, onSelect: function(title){ //alert(title + ' is selected'); } }); $("#aa").click(function(){ $('#tt').tabs('add', { title: 'New Tab', href: '/test.html', closable: true, closed: true }); }); });javascript