JQuery 和诺基亚:)
您好,我正在尝试移动我的网站,但遇到了 Jquery 问题。当我尝试执行 jquery 调用 (.$ajax) 时,它没有被渲染。 代码部分
var returnData = '';
$.ajax({url: './indexSubmit.php',
async: false,
dataType: 'json',
data:{flag:'vehicleInfo',
vehicleId:xVehicleId},
success: function(data,textStatus){
if(textStatus != 'success'){
alert('Error: '+ textStatus);
return;
}
returnData = data;
这是我不确定的 ,但我想我需要在浏览器中安装jquery。如果是,我可以使用一些javascript在浏览器中自动下载并安装jquery吗?
Hi I was trying to mobilise my website and I ran into an issue with Jquery. When I was trying to perform a jquery call (.$ajax) it was not getting rendered. This is the part of the code
var returnData = '';
$.ajax({url: './indexSubmit.php',
async: false,
dataType: 'json',
data:{flag:'vehicleInfo',
vehicleId:xVehicleId},
success: function(data,textStatus){
if(textStatus != 'success'){
alert('Error: '+ textStatus);
return;
}
returnData = data;
I am not sure, but I guess I need to install jquery in the browser. If yes, can I automatically download and install jquery in the browser using some javascript?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的对象格式错误,缺少右大括号、括号和分号:
Your object is malformed, you are missing a closing brace, paren and semi-colon:
如果我没猜错的话,您需要的是包含 jquery 库,以便您可以在页面上使用它。然后你需要一个
在里面... 阻止您的 html 页面。当然,在 src 属性内,您可以指定 jquery.js 文件所在的您自己的网络服务器内的路径。
If I get it right, what you need is to include the jquery library so you can use it on your page. Then you need a <script> tag on your html page. The most straightforward way:
Inside the <head> ... </head> block on your html page. Of course, inside the src attribute you can specify a path inside your own webserver where the jquery.js file is.