在mozilla firefox中,this.initUnits("weeks")不被视为函数 [英] this.initUnits("weeks") is not considered as a function in mozilla firefox

查看:65
本文介绍了在mozilla firefox中,this.initUnits("weeks")不被视为函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请一些人帮助我.....

原型正在与Internet Explorer合作,
但不能与mozilla firefox一起使用.....

有人有什么解决办法吗?


Pls some one help me with this.....

Prototype is working with Internet explorer,
but not with mozilla firefox.....

do someone have any solutions ...


function initGantt()
{
    debugger;
    Gantt = new cTimeLine();
}

function cTimeLine() 
{
    this.initUnits("weeks");// in mozilla it is 
                            //not considered as a function
    //cTimeLine.prototype.initUnits("weeks") //even this code is not working 
}

function cTimeLine.prototype.initUnits(units) 
{
    this.Units = units;
    alert(this.Units);
}

推荐答案

您是否尝试过输入全名-cTimeLine.prototype.initUnits?
Have you tried typing the entire name - cTimeLine.prototype.initUnits?


这篇关于在mozilla firefox中,this.initUnits("weeks")不被视为函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆