麻烦帮注释个函数
题目
麻烦帮注释个函数
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的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- 有一列数 :1,-1/2,2,-2/3,3,-3/4,4,-4/5,5,-5/6……第21个数是?第2010个是?
- 如图,OD是∠AOB的平分线,∠AOC=2∠BOC,∠COD=21°30′,求∠AOB的度数.
- 用回味造句
- I like (eggs and mike) for breakfast括号里的提问
- 基尔霍夫定律中,什么是沿回路绕行方向?
- 因式分解-3ab+2a-4+6b
- 一个数的十五分之四是50的五分之二,这个数是20.对吗?
- 1.解关于X的不等式-2
- 玛丽和她妈妈步行去一家商店!(用英语怎么说?)
- 若a,b互为相反数,b,c互为倒数,m的立方=m(1)(2b+2a)除以(m+22)+ac的值过程
热门考点