【发布时间】:2012-10-11 12:02:52
【问题描述】:
我在 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:$ 未定义”。此错误显示在 $.get 行。在脚本标签中,我也包含了 jquery 库文件。我不知道为什么这是错误来了。请解决我的问题。提前致谢。
【问题讨论】:
-
vignesh.gvignesh.org/emicalculator 这是我正在处理的页面。单击计算图像后,将通过 jquery ajax 请求计算值,并将值显示在下方。它在服务器上工作正常。在我的lampp localhost中,我收到了上面定义的错误。
-
请提供完整代码
-
我没有遇到这个错误。
-
我正在检查 Chromium 和 firefox。
标签: php javascript jquery ajax referenceerror