若是 自定义按钮,则用 加载起始事件
if(orgType == 1){
$(".x-emb-add").attr("style","display:none");
}
if("${type}"!="1"){
var a=$(".x-toolbar.ui-state-enabled.fs-tab-content-top-toolbar td:contains(提交)");
console.log(a);
a.hide();
参考
setTimeout(function() {
if (a != '1') {
contentPane.toolbar.options.items[0].setVisible(false);
}, 100);
-----------效果