内联javascript函数在IE 10中不起作用

时间:2013-07-04 18:43:37

标签: javascript inline

场景是 -

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');

0 个答案:

没有答案