高手帮忙看看这段Javascript 代码 谢谢

来源:百度知道 编辑:UC知道 时间:2024/07/07 11:16:16
下面这个代码 的第一句我有点不明白 这个msg 是什么 Message 又是什么接下去的两个又是什么 这里又没有定义。。请各位帮我解释下 谢谢
// JavaScript Document
msg.Message.prototype.render=function(el){
if (this.priority<=msg.PRIORITY_LOW.id){
this.renderSmall(el);
}else if (this.priority>=msg.PRIORITY_DEFAULT.id){
this.renderFull(el);
}
}
msg.Message.prototype.renderSmall=function(el){
this.icoTd=document.createElement("div");
var ico=document.createElement("img");
ico.src=this.icon;
ico.className="msg_small_icon";
this.icoTd.appendChild(ico);
this.icoTd.messageObj=this;
this.icoTd.onmouseover=msg.moverIconTooltip;
this.icoTd.onmouseout=msg.moutIconTooltip;
this.icoTd.onclick=msg.clickIconTooltip;
el.appendChild(this.icoTd);
}
msg.moverIconTooltip=function(e){
var event=e || window.event;
var message=this.messageObj;
var popped=message.popped;
if (!popped){
message.showPopup(event,f

就我知道的而言。msg是一个弹出对话框
message应该是返回错误信息用的
prototype是返回对象原型
其它的也不怎么清楚哦
好象就是跟mask弹出层差不多的意思吧