前不久苹果应用中遇到的问题:网上的这个办法不错
- 参数type由get改成post
- 添加参数cache并设置成false
- 添加时间戳
Javascript代码
- $.ajax({
- url: 'ios/index',
- cache: false,
- type: 'post',
- data: {
- timestamp: new Date().getTime()
- //params here
- },
- dataType: 'json'
- }).done(function (data) {
- //codes here
- });