摘要:
Ajax不能跨域访问,现在通过Jsonp 方式可以实现跨域,Jsonp 是json 方式下添加了回调函数使用Jquery ajax方法,HTML 代码如下目标域:http://localhost:6118/Store/Browse 本地域:http://127.0.0.1:8020/lin/index.html<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <meta meta http-equiv="Content-Type&q 阅读全文
posted @ 2012-07-21 17:12
Mr.Lin_♪
阅读(213)
评论(0)
推荐(0)
摘要:
初学Ajax,写了一个最简单例子,开始学习之旅。使用的是Asp.net + ajax方式先构建HTML 和 Javascript代码<script type="text/javascript"> var xmlHttp; function ajaxFunc(url, cfunc) { if (window.XMLHttpRequest) { //firefox、chrome、.... xmlHttp = new XMLHttpRequest(); } else {//IE6以下 ... 阅读全文
posted @ 2012-07-21 12:12
Mr.Lin_♪
阅读(133)
评论(0)
推荐(0)


浙公网安备 33010602011771号