2013年6月6日

ajax跨域访问远程webservice、ashx的解决方法

摘要: 1.HTML页面,主要是公文流转的webservice跨域,内外网邮箱的ashx跨域(用$.getJSON解决) //公文流转 $(function(){ $.ajax({ type:"POST", url:"wsOADoc.asmx/GetDocCount", data:{"utName":"linshan"}, success: function(strNum) { var xmlMs... 阅读全文

posted @ 2013-06-06 09:22 xnsb 阅读(1205) 评论(0) 推荐(0) 编辑

2013年6月5日

不同设备(ipad、iphone、PC、android、androidpad)访问同一页面跳转

摘要: <html><head><title>不同设备跳转</title> <script type="text/javascript"> window.onload=function(){ var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone/i) == " 阅读全文

posted @ 2013-06-05 11:52 xnsb 阅读(497) 评论(0) 推荐(0) 编辑

导航