困扰很久的firefox关于com的问题
大家帮忙看下下面的js代码,在IE中正常,在firefox就报错:      	ActionListener.prototype.actionPerformed=function(com){ 
       		if(this.area.element.pos){ 
 			this.area.element.pos.text=com.label; 
       			this.area.element.pos.collapse(true); 
       			this.area.element.pos.select(); 
       		} 
       	}; 
       	function   TagActionListener(area){ 
       		this.area=area; 
       	} 
       	TagActionListener.prototype.actionPerformed=function(com){ 
       		if(this.area.element.pos){ 
 			this.area.element.pos.text=com.fore+com.back; 
 			this.area.element.pos.moveStart( "character ",-com.back.length); 
       			this.area.element.pos.collapse(true); 
       			this.area.element.pos.select(); 
       		} 
       	};报moveStart这一行的错误,应该是和com有关系,但查了查资料,也没有找到,哪位知道的帮忙解决下,谢谢!       
------解决方案--------------------setSelectionRange