js中的函数问题(求高手)
一段JS脚本里有这么一个方法 function MyPot()
{
this.pots = null;//数据暂存
this.potArr = null;//标注点数组
this.lineArr = null;//线路ID名称数组
this.LineObj = new Array();//线路对象
this.AreaArr = null;//区域对象
this.AreaPot = null ;//区域点对象
this.serchArr = null;//搜索对象C
}
然后在接下来的脚本里有很多方法都是
MyPot.XXXX = function(){……}
类似这样的方法,有的XXX是上面的函数里声明的pots、potArr等。有的却不是上面函数中声明过的。
我想问这里的MyPot是上面的函数MyPot()么?
如果是的话,为什么有的MyPot.后面的名字没有在MyPot函数里出现过。
求详解