麻烦帮注释个函数
题目
麻烦帮注释个函数
var tabPane = new WebFXTabPane(document.getElementById("divTabPane"),true);
function openModule(icon,text,url) {
tabPane.openTabPage(icon,text,url);
}
上面实例化的函数为
function WebFXTabPane( el,bUseCookie ) {
if ( hasSupport() || el == null ) return;
this.element = el;
this.element.tabPane = this;
this.pages = [];
this.maxPages = 7;
this.selectedIndex = null;
this.useCookie = bUseCookie = null bUseCookie :true;
// add class name tag to class name
this.element.className = this.classNameTag + " " + this.element.className;
// add tab row
this.tabRow = document.createElement( "div" );
this.tabRow.className = "tab-row";
el.insertBefore( this.tabRow,el.firstChild );
var tabIndex = 0;
if ( this.useCookie ) {
tabIndex = Number( WebFXTabPane.getCookie( "webfxtab_" + this.element.id ) );
if ( isNaN( tabIndex ) )
tabIndex = 0;
}
this.selectedIndex = tabIndex;
// loop through child nodes
答案
这个是一个国外的比较出色的页签控件,本身已经包装成一个比较完善的类来对外使用
我已经回复你的邮件了,给你发了dome
希望能看得懂呵呵
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- 世界经济发展的不平衡对全球化和经济发展的影响?
- 25摄氏度时,某电解质的水溶液中,由水电离出的氢离子浓度为10的负a次方 mol/L
- 已知3x减4y等于4,xy等于1,求3x加4y的值
- 关于透镜的物理题
- 二次函数y=1/4x^2+x-1可以化为y=1/4(x+?)^2-2,它的图像可由函数y=1/4x^2的图像先向?平移?个单位
- 干冰制造舞台云雾的原理
- 二力平衡的例子
- 一至五年级的关于食物的英语单词(不要水果)
- 求2010陕西高考阅读The 1900 house 的翻译
- 在梯形ABCD中,AD平行BC,对角线AC垂直BC,且AC=12,BD=9,则此梯形的中位线是多少?
热门考点