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 に答える