Debugging IE8 Javascript Replace innerHTML Runtime Error

前端 未结 10 1004
执笔经年
执笔经年 2020-12-09 17:33
function DeleteData(ID)
{
 var ctrlId=ID.id;

 var divcontents=document.getElementById(ctrlId).innerHTML;
 var tabid=ctrlId.replace(/div/,\'tab\');
 var tabcontents=         


        
10条回答
  •  借酒劲吻你
    2020-12-09 17:41

    Ohh yes - remember that the HTML structure has to be valid.

    I tried loading an entire page into a

    tag - it failed (obviously), changing it to a

    tag solved my problem!

    So remember the HTML structure!

提交回复
热议问题