Controller层相当于MVC中的C,也是安卓或者前端请求的接口。 首先说Controller为什么需要写的更加简化? 第一、Controller是不能复用的; 第二、即便是将Controller分类,如果Controller代码过于庞大,不利于维护; 第三、Controller中的CRUD之类 ...
分类:
其他好文 时间:
2018-11-22 21:01:01
阅读次数:
210
1. Question: 287. Find the Duplicate Number https://leetcode.com/problems/find-the-duplicate-number/ Given an array nums containing n + 1 integers whe ...
分类:
其他好文 时间:
2018-11-20 22:53:18
阅读次数:
171
今天下午工作完成没事,登w3c的网站学习了一下xslt的基础知识,主要是因为工作中xml用的比较多,xslt也有用到,所以在这里学习一下。 XSLT:一种用于转换 XML 文档的语言。 XSLT 用于将一种 XML 文档转换为另外一种 XML 文档,或者可被浏览器识别的其他类型的文档,比如 HTML ...
分类:
其他好文 时间:
2018-11-15 23:15:17
阅读次数:
242
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr ...
分类:
其他好文 时间:
2018-11-15 15:36:33
阅读次数:
203
在model中通过limit_choices_to过滤 过滤出主键为3的用户,但是这样的问题是不能动弹的过滤出实时登录的用户,因此 在form中过滤 表 form 实例化时传入当前用户的主键 A为B表中字段,filter中的条件 ...
分类:
其他好文 时间:
2018-11-13 16:12:45
阅读次数:
116
287. Find the Duplicate Number Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least on ...
分类:
其他好文 时间:
2018-11-10 21:14:43
阅读次数:
137
20172328 2018 2019《Java软件结构与数据结构》第八周学习总结 概述 Generalization 本周学习了二叉树的另一种有序扩展?是什么呢?你猜对了!ヾ(?°?°?)??就是堆。本章将讲解堆的链表实现and数组实现,以及往堆中添加元素或从堆中删除元素的算法;还将介绍对的一些用途 ...
分类:
编程语言 时间:
2018-11-10 16:41:51
阅读次数:
233
本节重点: not null 与 default unique primary auto_increment foreign key 一、介绍 约束条件与数据类型的宽度一样,都是可选参数 作用:用于保证数据的完整性和一致性 主要分为: PRIMARY KEY (PK) #标识该字段为该表的主键,可以 ...
分类:
其他好文 时间:
2018-11-10 15:06:18
阅读次数:
152
关联时想对关联表数据筛选时:MySQL查询: ORM模型查询使用with(): 轉載:https://laravel-china.org/articles/7171/laravel-learning-records-orm-with-usage-model-association ...
分类:
其他好文 时间:
2018-11-07 11:22:55
阅读次数:
3257
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
分类:
其他好文 时间:
2018-11-04 00:41:03
阅读次数:
153