$ is not defined Jquery

$ is not defined Jquery

本文关键字:Jquery defined not is      更新时间:2023-09-26
<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
        <script type="text/javascript" src="deployJava.js"></script>
        <script type="text/javascript" src="example.js"></script>
    </head>
...

我正在尝试解决问题$ is not defined,例如.js在第 $(document).ready(function () { 行中.

为什么这不起作用?

谢谢。

请将示例.js声明移到deployJava.js上方。我认为deployJava.js有一些脚本错误。谢谢。