摘要:
做项目遇到 记录下 以免忘记json跨域请求报错,错误信息No 'Access-Control-Allow-Origin' header is present on the requested resource处理手段:使用jsonp格式, ajax请求参数dataType:'JSONP'。代码格式... 阅读全文
摘要:
public void delfile(string path) { if (Directory.Exists(path)) { foreach (string d in Directory.GetFileSystemEntries(path)) { if (File.Exists(d)) File.Delete(d); else ... 阅读全文