我在 Ubuntu 平台上使用 jquery、javascript、php。在页面中,我通过 jquery 向 php 文件发送 ajax 请求并获取响应文本。该程序在windows-(wamp)平台和在线运行成功。但在 Ubuntu 中,我收到了 javascript 错误。代码如下...
url = "index.php";
$.get(url,{
'action': 'Loan',
},
function(responseText){
alert(responseText);
},
"html"
);
在 Ubuntu 中,我收到此错误 “未捕获的 ReferenceError: $ is not defined”。此错误显示在 $.get 行。在脚本标签中,我也包含了 jquery 库文件。我不知道为什么这是错误来了。请解决我的问题。提前致谢。