Flex修改title 转载

1·Application 中设置 pageTitle="***"

2·也可以在初始化方法里设置 BrowserManager.getInstance().setTitle("***")


3·如果不想再操作后出现“#” 在 Application 中设置

historyManagementEnabled="false"

4·如果 Application 中设置无效 那么你的html-template 必然有混乱
index.template.html 中设置<title>${title}</title>

5.在index.template.html 中定义一个javascript函数内容如下:

function changeTitle(title){
   document.title = title;
}

在flex中调用

if (ExternalInterface.available){
       ExternalInterface.call("changeTitle","Jerry");
}

以上五点几乎可以解决任何问题了。

原文地址:https://www.cnblogs.com/zhxiaomiao/p/2093502.html