0

我在 IE8 中的以下行中收到跟随错误(不在 IE9 或 chrome 或 firefox 中)

popup = document.createElement('div');

错误 :

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 5 Aug 2011 13:39:41 UTC


Message: Object doesn't support this property or method
Line: 72
Char: 5
Code: 0
URI: http://192.168.7.1/fquick/script.js

我该怎么做?

4

1 回答 1

2

将线路更改为

var popup = document.createElement('div');

它有效。有趣的。

于 2011-08-05T13:47:35.010 回答