程晓晖

博客园 首页 新随笔 联系 订阅 管理

2011年3月20日 #

摘要: http://blog.csdn.net/totogogo/archive/2010/06/04/5646564.aspxload 方法的回调函数是不论成功与否都调用,而 $.get(), $.post(), $.getScript() and $.getJSON() 的回调函数只有 response 的状态是 success 才会调用该方法 全局函数 $.each() 可以用来遍历对象(包含 json 对象)或数组$.each() 是以要遍历的对象 / 数组作为第一个参数,以回调函数作为第二个参数。回调函数有2个参数,第一个为对象成员 / 数组的索引,第二个为对应于索引的 element 阅读全文
posted @ 2011-03-20 23:48 fumen 阅读(120) 评论(0) 推荐(0) 编辑

摘要: 一. 使用ifreame来实现跨域问题二.使用脚本实现跨域(MVC程序) http://localhost:7528/home/Test 表示其他网站地址 非本站1.<script type="text/javascript" src="http://localhost:7528/home/Test"></script>后台 public string Test() { return "document.write('<a href=\"http://www.baidu.com\"> 阅读全文
posted @ 2011-03-20 23:39 fumen 阅读(324) 评论(0) 推荐(0) 编辑