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

下载页的代码有问题 #122

Closed
QiiSyhx opened this issue Aug 1, 2014 · 3 comments
Closed

下载页的代码有问题 #122

QiiSyhx opened this issue Aug 1, 2014 · 3 comments

Comments

@QiiSyhx
Copy link

QiiSyhx commented Aug 1, 2014

按照文档示例,引入文件,
var d=dialog({title:'message','content':'dsfsadf'});
总是报错:
Uncaught TypeError: undefined is not a function ,
但是console.log(dialog)是有输出的,而且也是一个function,为dialog内部错误。

@aui
Copy link
Owner

aui commented Aug 1, 2014

如果是基于模块引入,是否配置了jquery这个全局模块?

@QiiSyhx
Copy link
Author

QiiSyhx commented Aug 1, 2014

我换成dialog.js,检查出错误了,是没有on这个方法,换一个高版本的jquery类库即可。我觉得可以在文档里面加一个最低版本jQuery类库的说明。

@aui
Copy link
Owner

aui commented Aug 1, 2014

OK,文档会添加上 jquery 版本要求

aui pushed a commit that referenced this issue Aug 1, 2014
添加 jquery 最低版本要求说明
@aui aui closed this as completed Aug 1, 2014
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