Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KISSY.app() 生成的应用在IE8以下浏览器,如果在另外的文件中调用,会出现未定义错误 #1

Closed
ktmud opened this issue Aug 3, 2010 · 3 comments

Comments

@ktmud
Copy link

ktmud commented Aug 3, 2010

在js文件A中定义了 KISSY.app("OS"), 如果多引入一个 js 文件 B,即使B放在A文件后,仍然会出现未定义错误。

IE8下能用,IE8兼容模式开始就不能用了... 是不是和脚本解析顺序有关?

UPDATE:人工声明一下 var OS = OS || {} ,问题解决了。

@lifesinger
Copy link
Member

想问下,两个 js 文件里面都是怎样写的?
我测试了下,没发现问题。在 IE8 兼容模式下也没问题。

@ktmud
Copy link
Author

ktmud commented Aug 5, 2010

额... 我无法重现这个bug了。把之前写的那句var OS = OS || {} 删掉也重现不了... 囧。

@lifesinger
Copy link
Member

问题解决了就好^o^

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants