-2
<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
,在example.js行$(document).ready(function() {
。
为什么这不起作用?
谢谢。
你可以显示你的example.js文件吗? – Muhsin
可以在小提琴上制作它?如果你这样做,请提供小提琴的链接 –
我有这样的事情: $(document).ready(function(){ 但是在该行之前,$不会给出错误。 – PRVS