文章摘要
这篇文章主要介绍了两段内部函数在HTML和JavaScript中的实现方式。第一段函数`initApp()`通过`link.htmlText`属性将字符串"草山狐随笔"赋值给HTML元素,用于初始化网页内容。第二段函数`openUrl()`则通过`navigateToURL()`方法导航到指定的URL(http://www.idceye.cn)。文章简要概述了这两段代码的功能与作用。
layout=”absolute” width=”278″ height=”244″>
internal function initApp():void{
var str:String=”草山狐随笔“;link.htmlText=str;
}
internal function openUrl():void{
navigateToURL(new URLRequest(“http://www.idceye.cn/”), “_blank”);
}]]>
© 版权声明
文章版权归作者所有,未经允许请勿转载。