toolbar += "{id:'btnadd',text:'新增数据字典',iconCls:'icon-add',handler:function(){editDict(null);}}";这样的吧最后的null,改成this,然后根据页面的源码,就可以找出规律得到id了。