property装饰器 property装饰器的作用,其实就是将将函数属性伪装成为属性的的装饰器 但是这这只是伪装成属性的,修改并不像属性一样能被修改 解决方案一: 方案二 ...
分类:
其他好文 时间:
2018-10-24 16:51:08
阅读次数:
206
原理 1、注册账号 http://localhost:59345/api/Account/Register 2、获取Token http://localhost:59345/Token Content-Type:application/x-www-form-urlencoded grant_type ...
分类:
Windows程序 时间:
2018-10-24 15:55:42
阅读次数:
1193
1.在data中设置: 2.在mounted中设置: 3.在watch中监听: ...
分类:
其他好文 时间:
2018-10-24 15:43:19
阅读次数:
1409
传送门 经典题 如果把每个环都找一遍绝对时间爆炸 所以我们要换一种思路 看到求最大最小首先考虑二分答案 如果平均权值最小的回路小于我们二分的答案mid会发生什么呢 如果我们把回路的长度减少 mid*回路边数,回路的长度就会变成负数 而把回路减少 mid*边数 其实相当于把回路上的每条边都减少mid ...
分类:
其他好文 时间:
2018-10-24 15:30:47
阅读次数:
153
数据结构实验之二叉树二:遍历二叉树 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 已知二叉树的一个按先序遍历输入的字符序列,如abc,,de,g,,f,,, (其中,表示空结点)。请建立二叉树并按中序和后序的方式遍历该 ...
分类:
其他好文 时间:
2018-10-24 15:22:13
阅读次数:
172
[TOC] 要实现的功能 html的表单里提交过数据到控制器,控制器调用 里的 方并过滤掉不需要的数据后保存到 表, 保存后会自动调用模型里的后置勾子 ,后置勾子的回调 里得到 表里新插入的主键后组装好数据, 再插入到 表里 思路: 1. 控制器里的用调用模型用 方法保存,在模型里的用 //当插入到 ...
分类:
Web程序 时间:
2018-10-24 10:52:32
阅读次数:
251
1 //New 2 class Solution { 3 public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) { 4 if(root == null) return null; 5 if(root.v... ...
分类:
其他好文 时间:
2018-10-24 10:43:58
阅读次数:
145
S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per ...
分类:
编程语言 时间:
2018-10-24 10:43:35
阅读次数:
223