已经使用vue有一段时间,并且写过两三个项目了,决定总结一下vue中常用到的东西,也算巩固一下,随着不断深入学习,也会不断的扩充这篇博客! 一.Vue 1.1 vue的常用指令和属性方法API: v if (v if else ,v else) , v show (修改display的css属性让其 ...
分类:
其他好文 时间:
2020-02-08 00:02:32
阅读次数:
68
多态是同一个行为具有多个不同表现形式或者形态的能力。 多态就是一个接口,使用不同的实例而执行不同操作,如图所示: 多态存在的三个必要条件 继承 重写 父类引用指向子类对象 比如: Parent p=new Child(); 当使用多态方式调用方法时,首先检查父类中是否有该方法,如果没有,则编译错误; ...
分类:
编程语言 时间:
2020-02-07 12:35:30
阅读次数:
73
1 """ 2 Intersection of Two Arrays 3 Given two arrays, write a function to compute their intersection. 4 Example 1: 5 Input: nums1 = [1,2,2,1], nums2 ...
分类:
其他好文 时间:
2020-02-06 23:00:09
阅读次数:
74
Suppose we have very large sparse vectors (most of the elements in vector are zeros) Find a data structure to store them Compute the Dot Product. Foll ...
分类:
其他好文 时间:
2020-02-06 12:45:46
阅读次数:
44
Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2] Example 2: Input: num ...
分类:
其他好文 时间:
2020-02-04 10:34:46
阅读次数:
61
一般在代码中,很多地方要对 对象 进行null判断,java 8 提供了一个更好对方法。 Optional、OptionalDouble、OptionalInt和OptionalLong package com.jason.mq;import java.util.Optional;public cl ...
分类:
其他好文 时间:
2020-02-03 09:51:49
阅读次数:
72
"P5569" 题意: 在一个操场上摆放着一排 $N$ 堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的 $2$ 堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的得分。 试设计一个算法,计算出将 $N$ 堆石子合并成一堆的最小得分。 数据范围: $N≤40000,a_i≤200$ 题 ...
分类:
编程语言 时间:
2020-02-02 01:19:53
阅读次数:
147
Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longestpath betwee ...
分类:
其他好文 时间:
2020-02-01 11:02:57
阅读次数:
105
递归概述 概念:指在当前方法内调用自己的这种现象。 递归的分类:递归分为两种,直接递归和间接)递归。 直接递归称为方法自身调用自己 间接递归可以A方法调用B方法,B方法调用方法,C方法调用A方法。 注意事项: 递归一定要有条件限定,保证递归能够停止下来,否则会发生栈内存溢出。 在递归中虽然有限定条件 ...
分类:
编程语言 时间:
2020-02-01 10:26:10
阅读次数:
112
Managing the UNDO TABLESPACE Every Oracle Database must have a method of maintaining information that is used to roll back, or undo, changes to the da ...
分类:
其他好文 时间:
2020-02-01 01:03:38
阅读次数:
98