首页 新闻 搜索 专区 学院

IE中不断替换节点的innerHTML,导致内存泄露

0
悬赏园豆:50 [待解决问题]

我的测试代码如下,当然实际代码不是这样,但替换指定区域内容的方法是一样的:

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>传输列表</title>
    <script src="Scripts/jquery-1.10.2.js"></script>
</head>
<body class="newprocessBody">
    <div class="nud_con" id="nud_con">
        <div class="task_con">
            <table border="1" class="task_item">
                <thead>
                    <tr>
                        <th style="width: 35px;">
                            <input id="taskcheckall" onclick="n_updown.CheckAll(this)" type="checkbox" style="vertical-align: middle; border: none;" /></th>
                        <th colspan="2" class="task_filename" style="text-align: left;">文件名</th>
                        <th id="taskcols3title" style="width: 340px;">进度</th>
                        <th class="task_casename">所属</th>
                        <th style="width: 120px;">操作</th>
                    </tr>
                </thead>
                <tbody id="task_cnt">
                </tbody>
            </table>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            setInterval(function () {
                test();
            }, 500);
        })

        var _html = "<tr class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (6) - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"fda5f3f641a742aca9cfc23396b310dc\" data-taskid=\"3f1049fb-b168-4c9e-9120-d12a56a2ed8a\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (7) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"f9188de58b8e42209df65bec9eb0588d\" data-taskid=\"350fced7-cf63-400a-bb6c-2ddda799f1fd\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (7) - 副本 - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"e82db9c665274f5f9effbbd41fa92e47\" data-taskid=\"3d89a01e-3a3c-4d7b-87a0-b49999f44e4e\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (8) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"ea1a9bc6f6414c5299304151c99cf9e3\" data-taskid=\"277baa72-820b-4a15-9bfc-7546db7afd0c\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (7) - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"aeb2da26ce68498faa59980eca408d80\" data-taskid=\"9199561b-ed9e-4cff-85eb-d3740bdb0857\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (7) - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"ecc2f226a6b74bb6bc4a39064d8c31f9\" data-taskid=\"bbceff1c-6bbb-4730-8b84-f0272a421483\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (6).mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"1a56cd121f6d4a50ae10e8b2087ce613\" data-taskid=\"c3cb40ac-8a68-4bbd-b1dd-bb9bb35429c1\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (8) - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"0184063621374b3e8a9f1db9b22ac757\" data-taskid=\"c3612a87-cd62-42c2-9a45-f3038d1b5565\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (7).mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"2e0f35875cd147cb937d3645aad16f67\" data-taskid=\"cab635b1-45c3-443c-a159-0848483784bc\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (24) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"bf26dbc49c544216b2a200292c94c198\" data-taskid=\"e3956a00-ec6a-43d0-9b0f-d2ab3b0f7150\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (4) - 副本 - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"50c78fd2e21442bb815e8b0db709a9eb\" data-taskid=\"6a002dd2-a9b3-49c8-931c-e37f54af7294\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (32) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"6190f9309df944c2ae62ab9c8a11e40b\" data-taskid=\"ce1a6768-6cc3-4c03-8a1a-b0825da139e6\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (31) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"4f2154c209aa42748b4d78aabc5ba1a4\" data-taskid=\"c88264f7-22b0-437b-9ec7-4c7cc9d58e91\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (28) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"0423d9fd91974614a6d4e3d28ce8d631\" data-taskid=\"93ea0fe7-2a70-4277-acba-4ed5d641b67a\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (26) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"5bc5db2e021141c888240e6514b58798\" data-taskid=\"2fed361f-ff39-493b-8bea-2bd6650bacc3\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (30) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"06a6ac73af76454e921fed5ec65687ee\" data-taskid=\"2cab362b-2054-4c4d-a3f8-875b721d6080\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (3) - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"a111e2709dd046e1a7a4c8bce0eeb8c1\" data-taskid=\"3b9b0107-3cd7-4063-87ac-6b0971a51fc7\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (25) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"79078d47723347a0a2189196d402de3d\" data-taskid=\"87703942-da20-41a7-844d-feec57a01808\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (29) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"69d3ab68341746358a014c049acd79b8\" data-taskid=\"8ec2f7c4-1529-4eda-9f41-ec4003fd46be\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (3) - 副本 - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"9a954c63a6e94cba81b843aba8725e8f\" data-taskid=\"ef8d6e08-eb3c-4979-b8c4-e90646dd6e51\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (6) - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"ac961ebe8b3244bfb9f1bb549238f28b\" data-taskid=\"306e972d-4f98-4236-ad7a-f330a748eb0c\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (5) - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"445f51c24b044aeb81fd7287a0e6521c\" data-taskid=\"e325f6e0-7f7c-4adf-ac3f-09601179b470\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (6) - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"dfb3f0005e7a4cbc9503fd24f5ce0d80\" data-taskid=\"8a0eadf3-0f3b-4950-9b16-0d8ce25ee4d7\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (6) - 副本 - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"8d62e0b08b6344af81ed5644a44ec54d\" data-taskid=\"5d5e6f88-ca21-4b00-bd70-9648b43776ad\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (5).mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"c6237a0059c441fba2d583fe164281e5\" data-taskid=\"f920ec7f-2c32-4058-b0a4-6880e141d04b\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (3) - 副本 - 副本 - 副本.mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr><tr data-caseid=\"26fe628d-ae4d-4f7f-8a7d-0836edd8de3c\" data-fileid=\"24003a3397ce4b6cac5e6605ba8a93f8\" data-taskid=\"ebafefe7-3237-4eb2-b836-54bef24ea250\" class=\"item-active\">                <td class=\"task_td_b w_check\">                    <input   type=\"checkbox\" style=\"vertical-align: middle;border:none;\" checked=\"checked\"/>                </td>                <td class=\"task_td_b w_img\">                    <i class=\"completeTypeImage type0\"></i>                </td>                <td class=\"task_td_b\" style=\"padding-left:10px;\">                    <span class=\"task_name\">向南 - 副本 - 副本 (3).mp4</span>                    <span class=\"f_cor\">                        <span>0.00 MB</span>                        <span>/</span>                        <span>8.96 MB</span>                    </span>                </td>                <td class=\"task_td_b\">                    <div style=\"\" class=\"process_out\">                        <div style=\"width:0%\" class=\"process_in\"></div>                    </div>                    <p style=\"color:#999;\" class=\"f_cor\">                        <span>上传进度</span>                        <span style=\"\">                            <span>:</span>                            <span>0%</span>                        </span>                    </p>                    <div class=\"task_createtime\" style=\"display:none;\">2016-07-01 11:33:24</div>                </td>                <td class=\"task_td_b\"><div class=\"task_casename\">用于测试123</div></td>                <td class=\"task_td_b\" style=\"text-align:center;\">                    <a   class=\"taskhandle clr\" title=\"删除\"></a>                    <a   style=\"\"  class=\"taskhandle reset\" title=\"重置\"></a>                </td>            </tr>";
        var parentDom = document.getElementById("task_cnt");
        function test() {
            parentDom.innerHTML = _html;
        }
    </script>
</body>
</html>
View Code

教下各位大神,有没有解决这种内存泄露的方法?望不吝赐教!!!

CCH-Taurus的主页 CCH-Taurus | 初学一级 | 园豆:136
提问于:2016-07-01 16:46
< >
分享
所有回答(1)
0

采用创建对象的方法,代码通过对象调用

Cuntain√ | 园豆:332 (菜鸟二级) | 2016-07-04 10:41
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册