情景是——
bnm () function is to be called for first time and resultObject constructed .
Later on , item function is to be called dynamically .
This function get called successfully in IE 7 .
but not in IE 8 , 9 , 10 .
Please suggest any solution .
///////////////////////////////////////// /
function bnm(xmlData)
{
this.item = function (recordno, itemname)
{
// some code
return result;
}
return this;
}
// 这里我调用了上面的函数
resultObject = bnm(anyData);
text1.value = resultObject.item(8, 'Policy1');
text2.value = resultObject.item(6, 'Policy4');
text3.value = resultObject.item(2, 'Policy8');