接上一篇文章,这篇文章来整理一下其他的一些vue指令。先申明一下,关于指令的一些概念都搬运自官网,如果有哪些不理解可以直接上官网进行学习。 列表渲染之v-for Expects: Array | Object | number | string | Iterable (since 2.6) Usag ...
分类:
Web程序 时间:
2020-07-05 00:43:56
阅读次数:
72
JS数据类型判断 JavaScript 中常见数据类型有Number、String、Boolean、Object、Array、Json、Function、Date、RegExp、Error、undefined、Null等十几种。ES6还有新增的数据类型有Symbol、Set、Map等。在实际应用中, ...
分类:
Web程序 时间:
2020-07-05 00:32:31
阅读次数:
89
集群的运行状况 GET /_cat/health?v 获取集群中的节点列表 GET /_cat/nodes?v 列出所有索引 GET /_cat/indices?v 创建索引 指定参数 PUT twitter { "settings" : { "index" : { "number_of_shard ...
分类:
其他好文 时间:
2020-07-05 00:27:57
阅读次数:
69
学习字符串format()函数,执行如下语句时报错:ValueError: cannot switch from manual field specification to automatic field numbering,意思为:值错误:无法从手动字段规范切换到自动字段编号 原来是因为自动编号和 ...
分类:
其他好文 时间:
2020-07-04 20:32:26
阅读次数:
86
题目信息 时间: 2019-07-03 题目链接:Leetcode tag:动态规划 小根堆 难易程度:中等 题目描述: 我们把只包含质因子 2、3 和 5 的数称作丑数(Ugly Number)。求按从小到大的顺序的第 n 个丑数。 示例: 输入: n = 10 输出: 12 解释: 1, 2, ...
分类:
其他好文 时间:
2020-07-04 17:19:58
阅读次数:
66
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2020-07-04 13:47:53
阅读次数:
61
$# :传给脚本的参数个数;$0 :脚本名称;$n :n为数字,代表传给脚本的第n个参数;$@ :参数列表;$* :也是显示参数列表,与上一条命令不同的是,当在双引号里面时,”$*”表示一个参数,即”a b c”,而”$@”表示三个参数,即”a” “b” “c”;$$ :执行当前脚本的进程ID;$? ...
分类:
系统相关 时间:
2020-07-04 13:41:05
阅读次数:
110
力扣链接:https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof/ 题目描述 给定一棵二叉搜索树,请找出其中第k大的节点。 思路:中序遍历变体 按右->root->左的顺序遍历,并计数K 代码: /** ...
分类:
其他好文 时间:
2020-07-03 23:28:17
阅读次数:
69
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:
其他好文 时间:
2020-07-03 21:49:23
阅读次数:
77
准备工作:新建文件夹,放入cgic.c cgic.h login.c和Makefile(后面新建),登录名为111,密码为222 效果图为: login.html 放到www目录下 <html > <head> <meta http-equiv="Content-Type" content="tex ...
分类:
其他好文 时间:
2020-07-03 21:44:15
阅读次数:
99