我有一个名为"text.html"的HTML页面。
无论是Photos.js还是Animations.js,都以 "$(document).ready()" 开始,如下所示:
<html>
<body>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="js/Photos.js"></script>
<script type="text/javascript" src="js/Animations.js"></script>
</body>
</html>
无论是Photos.js还是Animations.js,都以 "$(document).ready()" 开始,如下所示:
//Javascript File Photos.js
$(document).ready(function() {
//My code here ....
});
//Javascript File Animations.js
$(document).ready(function() {
//My code here ....
});
我在单个HTML页面中使用多个 $(document).ready(function() { 会有影响吗?
谢谢您的帮助。