![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
asp.net
lxtql
这个作者很懒,什么都没留下…
展开
-
如何解决XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
今天使用 weiapi 的模拟器调试程序的时候,发现使用jquery的异步方法调用的内容不显示 查看后台报错:XMLHttpRequest cannot load http://localhost:22222/api/User/Login?strUser=admin&strPwd=123456. No 'Access-Control-Allow-Origin' header is present原创 2016-09-14 15:21:31 · 3452 阅读 · 0 评论 -
Session、Cookie 帮助类
Session 帮助类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Web;using System.Web.SessionState;namespace Hzb.Utils.Sessio原创 2016-11-09 08:57:00 · 724 阅读 · 0 评论 -
Cache的封装和使用,用Cache代替Session
ICache 接口using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Hzb.Utils.Caching{ /// <summary> /// Cache manager interfa原创 2016-11-09 09:06:29 · 2572 阅读 · 1 评论 -
Ajax提交json字符串给后台处理
前台关键代码 function save() { var imgStr = getImgStr(); var positionObj = getPositionObj(); if (positionObj != null) { var paramObj = getParamObj(); var userOb原创 2016-11-23 14:11:13 · 8074 阅读 · 2 评论