这个小细节花了我30分钟时间排查 哎.....
总结: IOS和ANDROID没有像浏览器支持的那么好,在POST数据的时候,数据体DATA格式中,不能让参数用class命名 错误示范:
$.ajax({ type: "post", url: "http://www.cnblogs.com/../iPhoneReader/GetUserControlHtml.ashx", data: { action: this.Action, sort: this.SortType, pi: this.PageIndex, ps: this.PageSize,class:this.ClassType }, dataType: "html", success: function(result) { $(contentID).html(result); if (flag) { resSecurity(); } } });
注意这里的最后一个参数: class:this.ClassType 这样命名是有问题的,IOS和ANDROID是不支持这样请求的 最后调整为: $.ajax({ type: "post", url: "http://www.cnblogs.com/../iPhoneReader/GetUserControlHtml.ashx", data: { action: this.Action, sort: this.SortType, pi: this.PageIndex, ps: this.PageSize,classtype:this.ClassType }, dataType: "html", success: function(result) { $(contentID).html(result); if (flag) { resSecurity(); } } });
|
|