如何在单击 extjs 4 中的选项卡时加载不同的 jsp 页面

How can I load different jsp page on clicking the tab in extjs 4?

本文关键字:加载 页面 jsp 选项 单击 extjs      更新时间:2023-09-26
I have created 3 tabs in my home.jsp. 

我想要的是单击选项卡时它会加载另一个 jsp(它也有脚本)。 我用过

   title: 'Home'  
            autoLoad: {
                url: 'UserProfile', 
                script:true
            }
        }

此代码。但它只提供简单的文本。未加载脚本部分。如何正确加载脚本?

试试这个

tabObj.update(responseText)
responseText: call a ajax call to "UserProfile"
 title: 'Home'  
            autoLoad: {
                url: 'UserProfile.jsp', 
                scripts:true
            }
        }
它的"脚本"

而不是"脚本"