Hi I have the 3 javascript files.
- jquery.js
- utility.js
- file1.js
In file1.js I have
jQuery.noConflict()
jQuery(document).ready(function($) {
// ....
});
I get an error 'jQuery' was used before it was defined.
and 'document' was used before it was defined.
How do I safely get rid of this warning.
If I do
var document = document || {};
then in my utility.js if it is used, it would be null in IE and ok in firefox.
What is the best solution to this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…