一周新闻回顾:XP退役竟提升全球PC销量Webkit之HTMLInput分析有趣的创意的手工动画卡片

jsonp 跨域请求

另类设计 KIDD融合概念智能手机亮相
6天通吃树结构-伸展树
WebKit之零散记忆
[HttpGet] public HttpResponseMessage TestJsonp() { string json = "callback('Get成功');" ; var ruesult = new HttpResponseMessage { Content = new StringContent (json.ToString(), Encoding.UTF8, "text/javascript" ) }; return ruesult; } public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/javascript"; context.Response.Write( "callback('Get成功');" ); }$( document).ready(function () {$.ajax({ url: 'http://192.168.30.32:9005/api/School/TestJsonp' ,dataType : "jsonp",jsonp : "callback",success : function( data) { console.log(data)}});$.getJSON( 'http://192.168.30.32:9005/api/School/TestJsonp?callback=?' , null, function(data ) { console.log(data);});});
责任编辑:一周新闻回顾:XP退役竟提升全球PC销量