标签:
$(‘#createAuth‘).click(function () { var jsonObj = { id:0, name:‘权限‘ + new Date() } $.ajax({ type: ‘post‘, url: ‘service/authority/create.ashx‘, data: JSON.stringify(jsonObj), dataType: ‘json‘, success: function (d) { alert(d.Text); } }); });
context.Response.ContentType = "application/json"; context.Response.Cache.SetCacheability(HttpCacheability.NoCache); var request = context.Request.InputStream; StreamReader sr = new StreamReader(request); string json = HttpUtility.UrlDecode(sr.ReadToEnd()); sr.Close();
标签:
原文地址:http://www.cnblogs.com/ifengqi/p/4936285.html