码迷,mamicode.com
首页 > 其他好文
vue 递归组件的两种方法
app.vue <template> <div> <list :data="data"></list> <hr/> <render :data="data"></render> </div> </template> <script> import list from "./list.vue"; im ...
分类:其他好文   时间:2021-02-15 12:41:49    阅读次数:0
0242. Valid Anagram (E)
Valid Anagram (E) 题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" ...
分类:其他好文   时间:2021-02-15 12:41:17    阅读次数:0
StatefulSet删除
1.分类 级联删除: 删除StatefulSet时同时删除pod 非级联删除: 删除StatefulSet时不删除pod 2.级联删除 [root@k8s-master01 ~]# kubectl get pod NAME READY STATUS RESTARTS AGE nginx-6cdd5d ...
分类:其他好文   时间:2021-02-15 12:41:00    阅读次数:0
struct 和 class的区别
struct默认成员为public的,class默认成员为private的,此外并没有什么区别 所以用一个结构体给另一个结构体赋值时,一般结构体里如果没有定义赋值运算符,则会像类那样使用默认赋值运算符或默认拷贝构造函数。 1 #include <iostream> 2 3 using namespa ...
分类:其他好文   时间:2021-02-15 12:40:35    阅读次数:0
Vue2.x Class & Style Bindings
Intoduciton: The way of using '' in html part confused me when I was learning Class&Style Bindings in Vue's official guide.(of course it's also becaus ...
分类:其他好文   时间:2021-02-15 12:40:17    阅读次数:0
Codeforces Round #697 (Div. 3) A-G
A. Required Remainder 题意: $t$组样例,判定一个正整数$n$是否存在一个大于$1$的奇数因子,\((1≤t≤10^4), (2≤n≤10^{14})\) 思路: 打表,发现只有满足$2^$的数字不存在奇数因子。 Code: int main(){ ios::sync_wit ...
分类:其他好文   时间:2021-02-15 12:39:39    阅读次数:0
vue2021年复习系列
Vux复习一(基础) Vue复习二(渲染函数) Vue复习三(路由) Vue复习四(vue-api) Vue复习五(vuex) Vue复习六(vue-cli/axios) ...
分类:其他好文   时间:2021-02-15 12:38:51    阅读次数:0
「Selenium」- Can not connect to the Service /path/to/chromedriver @20210211
问题描述 # python3.7 /tmp/demo.py Traceback (most recent call last): File "/tmp/demo.py", line 4, in <module> driver = webdriver.Chrome('/srv/sharing/pack ...
分类:其他好文   时间:2021-02-15 12:38:15    阅读次数:0
PyChram 使用 jupyter notbook 注意事项
一、连接问题 PyCharm 版本:2020.2.X 连接时,Configured Serve 的选项那里,输入的 url 要带 token。 配置好之后,在第一次运行代码段时,IDE 会弹出一个让我们输入 token 的提示窗口,输入对应的 token 即可。 ...
分类:其他好文   时间:2021-02-15 12:37:42    阅读次数:0
entOS7 配置阿里云yum源方法
1、打开centos的yum文件夹 cd /etc/yum.repos.d/ 2、用wget下载repo文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 如果wget命令不生效,说明还没有安装wget工具, yum -y install wge ...
分类:其他好文   时间:2021-02-15 12:37:24    阅读次数:0
CentOS7 root 用户正确密码提示:“sorry,that didn't work.please try again”
问题描述:CentOS 7.9版本 root用户密码输入正确,出现错误密码提示:“sorry,that didn't work.please try again” 解决方案 一,创建普通用户,以前通用户登录 打开终端:输入命令 sudo passwd root 然后输入旧密码,新密码,再确认新密码( ...
分类:其他好文   时间:2021-02-15 12:37:10    阅读次数:0
Async and Await
Most people have already heard about the new “async” and “await” functionality coming in Visual Studio 11. This is Yet Another Introductory Post. Firs ...
分类:其他好文   时间:2021-02-15 12:36:36    阅读次数:0
剑指 Offer 57. 和为s的两个数字
题意 在一个有序数组里找两个和为s的数字 思路 1??有序,立刻联想到二分查找,我们可以依次遍历数组中的每个数字,然后二分查找另一个数字使得和可以为s。 2??双指针的写法 一开始分别放在最左和最右,对应为最小和最大的数字,记两个指针指向的元素的和为sum 如果sum > target,说明太大,则 ...
分类:其他好文   时间:2021-02-15 12:36:24    阅读次数:0
增强for循环
public class demo3 { public static void main(String[] args) { // 增强for循环 <=> 数组或者集合对象的语法糖 int[] arr = {1,2,3,4,5,6}; // 最笨的方法 for(int i = 0; i < arr.l ...
分类:其他好文   时间:2021-02-15 12:35:46    阅读次数:0
获取本地ip
在老毛子的文章里看到的获取本地ip的方法。实现蛮简单。没找到多少关于idStack相关的说明,有空再去外网溜达看看。先记录下。 program 获取本地ip; {$APPTYPE CONSOLE} {$R *.res} uses IdStack; function GetIPLocal: strin ...
分类:其他好文   时间:2021-02-15 12:33:49    阅读次数:0
centos升级git到2.x
centos6 yum install git yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm yum update git centos7 yum ...
分类:其他好文   时间:2021-02-15 12:32:55    阅读次数:0
权限管理
权限管理的需求分析: 三部分:菜单管理、角色管理、用户管理。 菜单管理就是对不同的菜单进行增删改查,就是对前端中的路由的管理,当路由下还有子路由时,删除该路由就是使用递归删除,直至没有子路由。 1、菜单管理 (1)菜单列表 (2)菜单的添加、修改 (3)菜单的删除 2、角色管理 (1)对角色的添加、 ...
分类:其他好文   时间:2021-02-15 12:32:36    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!