方法如下:
function delTbar(){
var toolbar = window.frames["frame1"].document.all.tbar1 // 这里的 ID 我都在上面给予指定了
toolbar.items.add(String key, Object o) //增加一个组件
toolbar.items.remove(Object o) //删除一个组件
toolbar.items.removeAt(Number index) //删除一个组件(序号)
toolbar.items.clear() //删除所有组件
//执行完后把 toolbar 重新加载一遍
}
声明:本站教程文章版权为一起Ext(http://www.17ext.com/)所有,转载请注明出处