日期:2014-05-18  浏览次数:20598 次

javascript中的疑问
var   schoolfilter   =   {
oFilter:   null,
oSchool:   null,
oGrade   :   null,
oClass   :   null,
oPopWin:   null,
oPopDiv:   null,
vFilter:   ' ',
vSchool:   ' ',
vGrade   :   ' ',
vFocus   :   -1,
CanHide:   true,
GradeShow:false,
contextPath   : ' ',
initobject:   function(oFilter,   oSchool,   oClass,   oGrade)   {
schoolfilter.oFilter   =   oFilter;
schoolfilter.oSchool   =   oSchool;
schoolfilter.oGrade     =   oGrade;
schoolfilter.oClass     =   oClass;

if((oFilter!=null)   &&   (oSchool!=null)){
schoolfilter.vFilter   =   oFilter.value;
oFilter.style.imeMode   =   'active ';
//oFilter.onPropertyChange   =   schoolfilter.onfilterchange;
oFilter.onkeyup     =   schoolfilter.onfilterkeyup;
oFilter.onchange   =   schoolfilter.onfilterchange;
}
}
这是javascript中的一段代码,看不懂这是什么格式   请教大侠

------解决方案--------------------
数组而已。

var arr = {};

用该方法实现OOP。。。
------解决方案--------------------
这样,楼主估计好理解一些。

function Fname()
{
this.fID = 10;
this.fValue = " ";
this.toDo = function()
{
alert( "Method. ");
}
}