Debugging IE8 Javascript Replace innerHTML Runtime Error

前端 未结 10 1024
执笔经年
执笔经年 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:50

    If you need to set innerHTML to "" (empty string) then you can use removeChild instead

提交回复
热议问题