Layout 如何从加载到dojo选项卡容器中的内容的url检索查询字符串?
我有一个dojo TabContainer,其中的选项卡是根据树中选择的内容创建的。选项卡的内容以以下方式加载:Layout 如何从加载到dojo选项卡容器中的内容的url检索查询字符串?,layout,dojo,Layout,Dojo,我有一个dojo TabContainer,其中的选项卡是根据树中选择的内容创建的。选项卡的内容以以下方式加载: var cp = new dojox.layout.ContentPane({ title: name + " Report", closable: true, }); cp.set("href", "SomePage.html#" + name); cp.placeAt(dijit.byId("contentTabs")); dijit.byId("conte
var cp = new dojox.layout.ContentPane({
title: name + " Report",
closable: true,
});
cp.set("href", "SomePage.html#" + name);
cp.placeAt(dijit.byId("contentTabs"));
dijit.byId("contentTabs").selectChild(cp);
SomePage有一个关联的JS文件,用于运行该页面的内容。如何从URL中提取哈希标记?location对象返回dojo应用程序的顶级URL。在SomePage的JS中,您可以访问contentpane小部件并获取其href attr
cp.attr('href');