this.className=this.className.replace(new RegExp("( |^)sfhover\\b"),
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 21:24:20
this.className=this.className.replace(newRegExp("(|^)sfhover\\b"),this.className=this.className.repl
this.className=this.className.replace(new RegExp("( |^)sfhover\\b"),
this.className=this.className.replace(new RegExp("( |^)sfhover\\b"),
this.className=this.className.replace(new RegExp("( |^)sfhover\\b"),
解读:this.className=this.className.replace(new RegExp("( |^)sfhover\\b"),"");
| 是或者,
^ 是文本始端匹配,
\\b 是指匹配一个单词边界,
合起来的意思,就是,当捕捉到sfhover这个clss时,就用“ ”来替换掉它,即,此时的class=" "
this.className=this.className.replace(new RegExp(( |^)sfhover\b),
javascript语句问题:this['className']?this['className']='nav_switch' :this['class']='nav_switch';this['className']?this['className']='nav_switch' :this['class']='nav_switch';这句是什么意思啊?this['className']='nav_switch' 这一句就可
下面代码中this.className='h2_catactive_cat'的含义是什么?
onMouseOver=this.className='a1'这句话是什么意思,this指什么?会有什么效果呢?
class=menu_list onmouseover=this.className='menu_list active' onmouseout=this.className='menu这个Html语言的语法怎么理解呢?两上个等号应该怎么理解好些?
function menuFix() { var sfEls = document.getElementByIdfunction menuFix() {var sfEls = document.getElementById(menu).getElementsByTagName(li);for (var i=0; i0? :) + sfhover;}sfEls[i].onMouseDown=function() {this.className+=(this.className.
this
this
this
THIS
this
this
this
this.
this
this
onBlur=check(this.form,this)
onmouseover=nTabs(this,