---
title: "ie 7  document未加载完 ，使用js添加新dom对象出现的“已终止操作”提示的解决方法"
author: "wunda"
date: "2011-07-20T10:28:26Z"
tags: []
categories: ["Web前端"]
slug: "ie-7-document-js-dom"
draft: false
lastmod: "2011-07-20T10:29:17Z"
id: 1128581
url: "https://wunda.iteye.com/blog/1128581"
---

是由于document对象没有加载完，js方法就插入新的dom对象引起的

可以使用一下方法
try{
				document.onreadystatechange = function(){ 
					if(document.readyState=="complete") 
					{ 
						alert('加载完毕'); 
						//dispallotDealInit();
					}
				} 
			}catch(err){
			
			}