0

我的站点使用Ajax显示下拉模型字段在手机浏览器中勾选时,由于大多数手机不支持ajax技术,下拉模型字段不出现,一直停滞不前

有没有办法将脚本更改为移动友好技术,以便当有人通过移动查看页面时,脚本可以使用该移动友好脚本

谢谢

4

1 回答 1

0

ajax not supported in mobile?? It is supported in major Operating systems such as iOS and Android.

I hope you are not programming for some old mobile browsers.

You can simply utilize the ajax functions in jQuery Mobile. I'm doing it for many of my projects.

A simple ajax call would look like below

$.ajax({            
 type: "POST",
 url: url,
 data: param,
 contentType:"application/json; charset=utf-8",
 dataType: "json",
 success: successFunc,
 error: errorFunc,
 beforeSend:function(){$.mobile.loading( 'show' );},
 complete:function(){$.mobile.loading( 'hide');}
});
于 2013-03-04T09:54:50.800 回答