-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
define和dom文档加载 #883
Comments
@lichunqiang 这两个讲的是use的方法,那独立文件里面的define也是同理是吧? |
@hguankei dom ready 和 define 没必然关系。一般不推荐写 dom ready 了,只要保证里面的代码操作的 dom 在操作时已经 ok 用 seajs 异步后,只有很少的情况需要放在 dom ready 里,比如无法保障 dom ok 时。 |
// Recommend to add `seajsnode` id for the `sea.js` script element
var loaderScript = doc.getElementById("seajsnode") || scripts[scripts.length - 1] 这是源码里面的。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请教模块文件还需要$(function(){})这个么
The text was updated successfully, but these errors were encountered: