摘要:
方式1(推荐) using System; using System.Collections.Generic; public class EntityData { public string Name { get; set; } public int Age { get; set; } } clas 阅读全文
摘要:
打开 VS 工具-->选项-->环境-->键盘 选择默认值,确定。 搞定! 阅读全文
摘要:
// 切换菜单 <div class="box"> <div class="box-item" id="0"> <span>菜单1</span> </div> <div class="box-item" id="2"> <span>菜单2</span> </div> </div> $('.box . 阅读全文
摘要:
//因为浏览器安全问题,无法获取上传图片地址,需要先存一遍然后再获取地址作参数上传 var des = CompressImage(@"C:\Users\PC\Pictures\测试\1652344981(1).jpg", @"C:\Users\PC\Pictures\测试\ok.jpg"); Co 阅读全文
摘要:
1.安装Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation包 2.在Startup中ConfigureServices方法里面加入services.AddMvc().AddRazorRuntimeCompilation(); 阅读全文
摘要:
1.首先保证Jquery是不是在所有js最前面引入且引入地址正确能打开 2.页面jquery不能重复引入,我这边就是重复引用了导致报错的 阅读全文
摘要:
IIS部署 1.程序内和.NET之前一样发布就行 2.文件考到服务器,正常部署 重点:①程序池选择无托管代码。②模块中看是否有安装这两个模块,没有的话去微软官网下载 下载地址:两个都要装 1.https://go.microsoft.com/fwlink/?linkid=844461 2.https 阅读全文
摘要:
表单元素必须要标记在表单里面(calss="layui-form") 例如: <div class="layui-form"> <input data-id="<%#Eval("Id") %>" type="checkbox" name="switch" lay-skin="switch" lay- 阅读全文
摘要:
接口文档下载 1.移动后台接入用户新增(选择HTTP协议) 2.后台代码 /// <summary> /// 用户名 /// </summary> private readonly static string UserName = ConfigurationManager.AppSettings[" 阅读全文
摘要:
找到项目属性页 选择对应的.Net 框架,点击保存,重启一下就好了 阅读全文