this is my code
<!doctype html> <html> <head> <meta charset="utf-8"> <title>EVENTI</title> <link rel="stylesheet" type="text/css" href="../CSS/stile.css"> <link href='http://fonts.googleapis.com/css?family=Squada+One' rel='stylesheet' type='text/css'> <!--importare google font--> <script src="../JS/ridimensionapagina.js"></script> <script src="../JS/jquery-1.11.1.js.js"></script> </head>
in my "ridimesionapagina.js" i've some JS code that debunk some of my elements declared in my css code , but in this page it doesen't works why?
Well making the assumption that you're using jQuery in your ridimensionapagina.js
file, one would assume you'd fix the issue by reversing the order you load the scripts so that jQuery is in fact available when your ridimensionapagina.js
script loads and runs.
<script src="../JS/jquery-1.11.1.js.js"></script>
<script src="../JS/ridimensionapagina.js"></script>
instead of
<script src="../JS/ridimensionapagina.js"></script>
<script src="../JS/jquery-1.11.1.js.js"></script>
如果在ridimensionapagina.js中使用jQuery,则应在加载ridimensionapagina.js文件之前将..include jQuery路径放在上面以加载jQuery。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.