- 博客(185)
- 收藏
- 关注
原创 .net项目快速上手(针对有java项目基础)
1.项目的架构, 就是哪个文件夹下该写什么,我们这里是mvc的混合型如上基本上是mvc的框架,app是业务层,config一般是配置一些依赖的配件的,domian放的是一张表设计的页面,repository.里面就是实体类框架主要说下俩个,一个是domian里面设计了一个类,比如说一个 person类,它有一些字段和方法。 这个类设计的目的是用来暂存从数据库出来的数据的一个对象的。 不熟悉面向对象的编成的,可以理解为下面这些东西strcut person{ int age...
2020-06-05 10:56:33
548
原创 后端生成的表单,layui框架如何实现
//初始化列表,其实就是把数据库的内容绑定到相应的输出框上. table.render({ elem: '#' + listId , height: 'full-200' , url: '/RiskPoint/Query_PageList' //数据接口 , page: true //开启分页 , limit: 20...
2020-06-02 14:34:31
390
原创 后端生成表-layui稍微复杂点
目标生成上面的表格。。方法一 引入layui的插件,soultable的插件1.从github上面把插件源码下载下来 2.在vs中右击添加到任务管理器里面 把需要的js和css都添加进去 3.在js中把拓展的模板引入到项目中。 (把人家写好的代码,留下接口,自己调用就ok)2.自己写自己需要的js。functionmerge(res){vardata=res.data;varmergeIndex=0;//定位需要添加合并...
2020-06-02 11:27:30
268
原创 .net的后端的一般框架
基于mvc的,简单来说,就是 model层写什么,view层写什么,control层写什么。model层如上,类似java中的domain里面写的,不过不需要字段和方法分开,如上,写个get set方法,字段默认就有了。view层一般就是放 前端的一些代码的,页面的代码,js的一些代码的,control层,就是放后端处理的数据 给 前端返回的接口。repositories中的entityframework, 就是一个框架,把数据库和代码分开,l利用这个框架,生成一些1对多的关系等等。。.
2020-06-01 15:49:59
3247
原创 后端生成表单---从简单到复杂的分析之一;简单的表的生成
后端需要用layui的框架生成一个表,数据从数据库里面取代码如下table.render({ elem: '#' + listId , height: 'full-200' , url: '/RiskGrade/Query_PageList' //数据接口 , page: true //开启分页 , limit: 20 ...
2020-05-30 10:19:17
532
原创 前端的学习路线的优先级
1.html,css,js,这三个是基础(30);2.js语法的一些细节,作用域,this,闭包,ajax,promise,jquery,等(30);3.html5和css3新的一些改变4.浏览器兼容性的问题,比如移动端的网页的打开,百度是是否可以打开,搜狐上是否可以正常打开5.框架,react,vue,layui等,这个是简化操作的工具,从知识的理解上,优先级不高;6.自动化工具,构建工具webpack,构建工具gulp,css预处理器sass等。7.前端的一些综合,比如网络上的知
2020-05-30 09:10:49
179
原创 框架的使用的一般语法
用了这个框架的AAA和BBBand......; 把这个对象取出来,才可以对对象进行操作; 接下来有只有一种操作:{ 1,这个对象要干什么, 2把对象需要的资源都给它; 代码就是 对象a.fuction(){ 1.设置这个对象所需要的信息来源,url:给定数据来源的一个接口,设置这个控件里面显示的内容,它的数据格式。还要设置这个对象绑定到html那个块块上面等} layui.use(['form', 'laydate'], function () { v...
2020-05-30 08:53:46
187
原创 前端-接着弹出小窗口中的列表的小细节
1.就当这个表是额外的,需要把这个表 加入到原来的html页面上,需要一个地方,在原来的页面上标记一个地方可以放置的地方,给一个空的tableid2.设置一个表弹到这个地方,table.render(); 通过 elem: ’#tablelist‘,绑定到我们需要的地方。3....
2020-05-28 15:39:47
554
原创 前端-弹出的表单上面,加上一个临时的保存表的处理
效果如上;第一图的页面: 上面就是普通的html,需要点击编辑 弄一下跳转的链接,点击就会过去了。数据的交互,通过js。1.点击的哪一行,需要传递一个id,在js中需要解析这个id。2.保存的时候,需要是一个json数据,下面的序号和处置卡名称,主要负责人,不是作为一个表,没有表id的,需要把里面的数据取出来,编成字符串的格式。(不是固定的,主要的是后台dto的数据接口,对于下表数据的处理就是string)。保存的操作,主要通过parm这个对象,只需要把parm类中的各个字段都...
2020-05-28 15:20:33
726
原创 layui框架
首先,layui是一个前端框架,框架的意思: 字面上理解,是一个架子,你拿这个架子去做一些东西。 其实框架就是一个工具,用这个工具下的东西去实现我们想要的东西,比如 html上的item标签,现在我们使用的是layui-item标签。 这样子就是用的是这个工具下的item。layui是基于模块的,模块的意思:form表单是一个模块。 比如一个表单是一个模块等等。、layui模块的类型的定义,define (模块,返回一个接口) 模块:比如一个表的各项信息,接口是对这个对象操作的方法。...
2020-05-27 11:31:35
837
原创 js中常用的数据类型
js中的数组{} 放的是json对象如 var buffatrr = { key:value}[] 中括号中放的是数组如 var a = 【】 定义一个数组a,里面没有任何元素 一般的 var a = [1,2,3];
2020-05-21 16:40:21
145
原创 如何用js向网页上面输出内容
1.alert() 直接在网页上弹出一个小框框,上面的内容自己可以设置;2.write() 写入一个,目前没用过,用到再补充;3..html() 往控件上面赋值;4.console.log() f12 网页控制台上面,用这个可以看看,控件有没有与对应的值绑定。。等,调试需要。...
2020-05-21 16:12:56
1167
原创 js应用在html哪里
<a 加入js></a> (a任意)这里的js可以写全,可以写个方法名,没写全的需要从外部把方法名所在的js引过来。一般公式:什么事件触发 对象.绑定控件.修改属性 如:onclick = ‘ ’object.findbyid.style...
2020-05-21 16:01:30
219
原创 .net 的项目常用组成
不全,日后接触多再补上1.Models 跟java项目上的 domian 里面放的东西一样,就是定义一些类,暂存数据如何发送和保存,用这个类,形成一个对象2.repositories 跟java上的接口差不多。类的接口3.controllers上面是设置,跳转页面的想对路径。。。 相对路径就是(不清楚正确与否)绝对路径 19.18.20.30 相对路径 admin/user/set4.......
2020-05-20 17:18:53
169
原创 前端的一些基本了解
1.前端html语言,就一些标签,感觉记忆用处不大,用的时候直接查,就是一个框框,一个萝卜一个坑,这就是坑2.前端css,目前没有接触,应该把坑做的好看点的东西3.前端js,用来实现前端数据与后端数据交互的,目前我用的是ajax。4.前端框架,react,layui,vue,其实就是个工具,在写html的时候,把东西嵌入进去,用的样式...
2020-05-20 17:09:12
130
原创 vs2019上git的操作
1.在vs创建项目,连接到远程数据库;2.所在操作都是在master分支上面;<!---这里有俩个master 一个是本地的master,另外一个是远程的master-> ,可以理解为本机的git软件帮你备份了一个,浏览器上的git又帮你存了一个。3.更改提交,是提交到本地 , 更好后 需要 传出提交 推送到远程分支4.然后在远程库上面进行修改的内容,如何搞到本地。。。 点击拉取(pull),就能把数据拉倒本地。5.拉取和提取(fetch)的区别,拉取是直接覆...
2020-05-20 16:58:32
2554
原创 项目中的小知识点
1.如何比较俩个对象 1.1 用.把类的属性给具体指出来,进行比较 1.2 equal(),传入俩个对象,第三个参数应该是cmp,重写一下cmp方法即可。(类比sort排序中的cmp方法是一样的)。2....
2020-05-18 03:22:47
134
原创 前端_关于ajax如何调试
视图层前端都是html写的,如何通过前端与后端进行交互,通过ajax异步请求响应来执行,get,post。一般都是发送key:value的形式来写。json的数据需要序列化才能发送。如何看有没有发送成功,每一个函数有没有执行需要在网页上输入静态页面的,url按f12,查看需要的属性元素。(常用如下,持续更新)...
2020-05-18 03:14:30
426
原创 patB 1030 完美数列
分析了下,暴力解决这个问题的事件复杂度大概是 10^5 * 10^5 200ms 马马虎虎正好够用,先用快速排序对数组中的数字进行排序,再者只需要遍历数组中数字,把从该位开始到多少结束,中间的数字统计一下,最后遍历一下统计的数组就ok了。#include <iostream>#include <cstdio>#include <cstring>...
2019-02-28 21:29:48
211
原创 ccf 13_12_4 有趣的数
#include <iostream>#include <cstdio> #include <cstring> #define ll long longusing namespace std;const int mod = 1000000007;ll dp[1000+10][10];int main(int argc, char** argv) ...
2019-02-26 15:16:22
176
原创 链表的删除
#include <iostream>#include <cstdio>using namespace std;struct node{ int data; node* next;};node* create(int *a){ node* p,*pre,*head; head =new node; head->next=NULL; ...
2018-06-11 20:02:18
217
原创 链表的插入
#include <iostream>#include <cstdio>using namespace std;struct node{ int data; node* next;};node* create(int *a){ node* p,*pre,*head; head =new node; head->next=NULL; ...
2018-06-11 19:49:02
178
原创 链表的操作
#include <iostream>#include <cstdio>using namespace std;struct node{ int data; node* next;};int main(){ node* node1=new node; node1->data=3; node1->next=NULL; cout&...
2018-06-11 19:30:03
127
原创 csp-2016-9-2 火车购票
#include <iostream>#include <cstdio>using namespace std;const int maxn=110;int book[maxn]={0};int main(int argc, char** argv) { for(int i=0;i<maxn;i++) book[i]=0; int time; scanf("%d",&...
2018-06-05 19:56:35
347
原创 csp-17-3-2 学生排队
#include <iostream>#include <cstdio> using namespace std;const int maxn=100001;int n;int student[maxn];int main(int argc, char** argv) { scanf("%d",&n); for(int i=1;i<=n;i++) studen...
2018-06-04 21:17:13
394
原创 csp-16-12-2 工资计算
#include <iostream>#include <cstdio>using namespace std;int getans(int x){ int asn; if(x >=0 && x <= 1455){ asn= x/0.97; }else if(x > 1455 && x<=4155){ asn = ...
2018-06-04 21:15:36
217
原创 csp-17-9-2 公共钥匙盒
#include <iostream>#include <cstdio>using namespace std;const int maxn=11000; //time limitsconst int nummax=1001;int time_In[maxn]={0};int time_Out[maxn][maxn]={0}; //store the key...
2018-05-31 22:07:06
300
原创 树的操作
#include <iostream>#include <cstdio>#include <queue>using namespace std;const int maxn=10001;int data[maxn];struct node{ int data; node* leftchild; node* rightchild;};node *newnode(i...
2018-05-31 22:04:42
263
原创 堆的操作 : 建立堆 ,删除元素,插人元素;
#include <iostream>#include <cstdio>using namespace std;int heap[11]={0,85, 55 , 82 , 57 , 68, 92, 99 ,98 , 66 ,56} ; //level void downAdjust(int low, int high){ //把每个根结点 和 父结点 进行比较,大的...
2018-05-31 21:19:36
862
原创 patA1023 have fun with numbers (20)
#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int maxn=100001;int hashT[maxn]={0};int hashb[maxn]={0};struct bign{ int d[1...
2018-05-30 20:32:47
199
原创 patA 1096 Consecutive Factors(20)
#include <iostream>#include <cstdio>#include <cmath>using namespace std;int main(int argc, char** argv) { int n; scanf("%d",&n); int len=sqrt(n); int start,max=0; for(int i=2;i&l...
2018-05-30 19:54:09
198
原创 csp-2018-3-2 碰撞的小球
#include <iostream>#include <cstdio>using namespace std;const int maxn=10001;int buf[maxn];bool d[maxn]={false}; //false 表示向右走, true 表示向左走; int book[maxn]={0};int main(in...
2018-05-29 21:12:44
361
原创 csp-2017-12-2 游戏
#include <iostream>#include <cstdio>using namespace std;const int maxn=10001;int person[maxn]={0};bool mark[maxn]={true}; //true :生存 false :死亡 int main(int argc, char** argv) { in...
2018-05-29 21:09:15
1386
原创 patB1070 接绳(25)
#include<bits/stdc++.h> using namespace std; int main() { //优先队列大的优先 priority_queue<double,vector<double>, greater<double> >ss;//改成小的优先 int n; double s,xf;...
2018-05-26 17:52:30
182
原创 patB1069 微博转发抽奖(20)
#include <iostream>#include <cstdio> #include <cstring>#include <set>using namespace std;const int maxn=1001;string person[maxn];set<string> SS;int main(int argc, char** ...
2018-05-26 17:50:52
334
原创 patB1068 万绿丛中一点红(20)
#include <iostream>#include <cstdio> using namespace std;const int maxn=510;int buf[maxn][maxn];int main(int argc, char** argv) { int m,n,left,right,v; scanf("%d %d %d %d %d",&m,&n...
2018-05-26 17:49:51
298
1
原创 patB1067 试密码 (20)
#include <iostream>#include <cstdio> using namespace std;const int maxn=510;int buf[maxn][maxn];int main(int argc, char** argv) { int m,n,left,right,v; scanf("%d %d %d %d %d",&m,&n...
2018-05-26 17:48:49
229
原创 patB 1066 图像过滤(15)
#include <iostream>#include <cstdio> using namespace std;const int maxn=510;int buf[maxn][maxn];int main(int argc, char** argv) { int m,n,left,right,v; scanf("%d %d %d %d %d",&m,&n...
2018-05-26 17:47:49
246
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人