mutation.js代码: changeRoute(state, val) { let routeList = state.routeList; let isFind = false; let findeIdex = 0; //菜单栏和下拉的二级菜单 if (val['type'] == 'hea ...
分类:
其他好文 时间:
2019-09-18 19:39:18
阅读次数:
149
<input type="text" readonly="readonly" @click="cloneWe($event)"/> 1 cloneWe (event) { 2 let e = event || (event = window.event) 3 let input = e.target... ...
分类:
其他好文 时间:
2019-09-18 12:57:02
阅读次数:
67
nginx的location、root、alias指令用法和区别 root alias root与alias主要区别在于nginx如何解释location后面的uri,这会使两者分别以不同的方式将请求映射到服务器文件上。 root的处理结果是:root路径+location路径 alias的处理结果 ...
分类:
其他好文 时间:
2019-09-17 17:26:12
阅读次数:
76
tensorflow里面有太多的函数功能,完全像是新学一门语言,所以打算采用,遇到不会的函数就记录下来,作为自己的函数手册。这篇要讲的就是tf,cond()。 tf,cond(A,B,C) 就像是条件语句:if A: B else:C,举个例子: 解读一下这个官方的例子,首先是给z赋值了一个简单的乘 ...
分类:
其他好文 时间:
2019-09-16 23:59:54
阅读次数:
239
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2019-09-14 00:17:29
阅读次数:
98
Binary Tree Traversals Problem Description A binary tree is a finite set of vertices that is either empty or consists of a root r and two disjoint bin ...
分类:
其他好文 时间:
2019-09-13 17:43:06
阅读次数:
84
不废话,直接上代码: 案例源码(待会用于操作的) 测试 结果: 开始测试 : 删除 删除有三个关键字待会会分别测试 分别是 Remove empty detach Remove: 结果是: 删除后再把这个添加到box里 再来测试结果: 发现怎么点也不会跳出alert写的,也就是使用remove时将其 ...
分类:
Web程序 时间:
2019-09-13 17:20:11
阅读次数:
105
流程控制之for循环 for + break for + continue for循环嵌套 for + else for 循环实现loading 可变和不可变 可变 : 值变 ID不会变 不可变 : 值变 ID也变 可变类型有 列表、字典 不可变类型有 数字类型、字符串 有序和无序 有序 : 有索引 ...
分类:
其他好文 时间:
2019-09-13 15:11:53
阅读次数:
69
Diagonal Walking v.2 "CodeForces 1036B " Mikhail walks on a Cartesian plane. He starts at the point (0,0)(0,0), and in one move he can go to any of ei ...
分类:
其他好文 时间:
2019-09-13 10:51:53
阅读次数:
120
列表内置方法 1.索引取值、索引修改值 2 [1, 3, 3, 4] 2.切片 [1, 3, 3, 4] [3] [3, 4] 3.for 循环 1 9 9 16 4.成员运算 True False 5.append() [1, 3, 3, 4, 5] 6.len 5 7.del删除(删除指定索引号 ...
分类:
其他好文 时间:
2019-09-12 21:09:45
阅读次数:
80