- 博客(18)
- 收藏
- 关注
原创 3D相册
1.旋转相册<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><TITLE> New Document </TITLE><html><head lang="en"> <meta charset="UTF-8"> <title></title> <style&
2021-03-18 10:53:27
114
1
原创 IDEA需要修改的配置
IDEA的自动编译功能:(1)esc默认自动打开,idea需要手动打开 idea默认匹配大小写,需手动关闭3.智能导包开关4.鼠标悬停提示开关5.取消单行显示类——如图所示,把按钮取消(1).取消后的效果6.项目文件编码:7.滚轴修改字体大小,实现和DOC文档同样的效果:8.行号显示:...
2021-03-18 10:40:00
228
原创 springBoot打印sql日志
1.idea导入对应的包2.选择文件路径3.配置yml文件logging: level: com.tkp.tkpole.confirm.dao.jenkinsdao: debug
2021-02-26 14:36:17
259
原创 Js获取当前时间戳并格式化
1.获取当前时间:var myDate = new Date();//Fri Jul 10 2020 11:22:39 GMT+0800 (中国标准时间)2.获取时间中的年月日时分秒:myDate.getYear(); // 获取当前年份(2位)myDate.getFullYear(); // 获取完整的年份(4位,1970-????)myDate.getMonth(); // 获取当前月份(0-11,0代表1月)myDate.getDate();
2020-07-10 11:35:52
900
原创 图片上传——果蔬项目
一、form表单中引用@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment@section header{ @BundlerHelper.Render(HostingEnvironment.ContentRootPath, Url.Content("~/lib/fileinput/5.0.3/css/fileinput.min.css")) @BundlerHelper.Render(Hos
2020-07-09 18:34:43
461
原创 枚举——果蔬项目
一、创建枚举类二、在form中调用 $("#timeLimitWhether").ysComboBox({ data: ys.getJson(@Html.Raw(typeof(IsEnum).EnumToDictionaryString())) }); 三、在实体中添加 [NotMapped] public string TimeLimitWhetherName { get {
2020-07-09 18:06:58
194
原创 下拉框的多级调用
一、首先要保证下拉框调用的方法的正确二、 $("#bigclassId").ysComboBox({ url: '@Url.Content("~/BasisManage/Bigclassification/GetListJson")', key: "Id", value: "BigclassName", class: "form-control", multiple: false });$("#bigclassId_select").on("s
2020-07-09 16:17:42
837
原创 果蔬项目各种模块编写流程~
一、对照需求修改数据库字段二、生成代码三、修改web.controller的各种方法:注意[AuthorizeFilter("basis:bigclassification:search")]这一块的路径,页面调用方法时指向这里,以及[HttpGet]webcontroller中client调用api的方法时var request = GetRestClient(action, Method.POST);中的post或者get方法要与webapi的[HttpPost("GetList")]一致,
2020-07-09 14:51:12
172
原创 Ztree(果蔬项目)——其他方法酌情使用
web的API添加方法: [HttpGet] [AuthorizeFilter("system:areas:search")] public IActionResult GetAreasTreeListJson(AreasListParam param) { TData<List<ZtreeInfo>> obj = new TData<List<ZtreeInfo>>();
2020-07-08 17:41:31
164
原创 MySQL将一个字段中以逗号分隔的取出来形成新的字段
1例如:要把如图1的字段拆分图2select account_id, substring_index(substring_index(a.related_shop_ids,',' ,b.help_topic_id+1),',',-1) shopid from sales_hang_account a join ...
2020-04-28 16:39:21
1191
转载 c# entity framework 访问数据库的配置信息
1.项目:管理NuGet程序包—>浏览—>搜索框输入MySql.Data—> 搜索 MySql.Data Install MySql.Data.Entity Install【注意:NuGet 安装 Mysql.data 和 Mysql.data.Entity 版本一定要一致】【注意:本地计算机中,安装的 MySQL Connector N...
2020-04-28 14:06:06
523
原创 递归查询第一例
PagerDto<LeaveMessageVM> listParent = new PagerDto<LeaveMessageVM>(); int count = 0; public PagerDto<LeaveMessageVM> GetByParentId(string ParentId, int pageIndex, int pageSize, strin...
2019-09-04 17:30:42
122
转载 JS变量的生命周期
变量的生命周期1.声明全局变量:全局声明的变量局部变量:函数内声明的变量,函数参数声明局部变量的时候必须用var,否则产生的是全局变量1 scope = “global”;2 function checkscope2() {3 scope = “local”;4 myscope = “local”;5 }6 checkscope2();7 console.lo...
2019-09-02 10:14:53
441
原创 留言板功能记录
基于已经建立好的do、dto、html、js、以及api接口。1、如何将页面添加到功能模块中:sys_menu中的status字段修改为A。PS:你要确认自己的web.config指向的数据库位置是你想要的那个数据库2、[FromBody]和[FromUrl]的区别:FromBody:使用FromBody将强制从FormData中读取数据FromUri强制从url中读取FileRequ...
2019-08-28 15:36:59
298
原创 Ajax、Jquery向后台传输和接收数据
1.实体类:2.html代码:3.controller代码:4.jquery代码:接收后台传出来的数据向后台发送数据
2019-07-27 15:24:03
711
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人