给定一个字符串 s ,请你找出其中不含有重复字符的 最长子串 的长度
示例1
shell输入: s = "abcabcbb" 输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。
css
.app-item:hover:before {
content: "";
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
border-radius: 20px;
border: 2px solid black;
animation: div5Ani 3s infinite linear
}
.app-item:hover:after {
content: "";
position: absolute;
top: -3px;
left: -3px;
right: -3px;
bottom: -3px;
border-radius: 20px;
border: 2px solid black;
animation: div5Ani 3s infinite -1.5s linear
}
@keyframes div5Ani {
0%,
100% {
clip-path: inset(0 0 98% 0);
}
25% {
clip-path: inset(0 98% 0 0);
}
50% {
clip-path: inset(98% 0 0 0);
}
75% {
clip-path: inset(0 0 0 98%);
}
}
注
父传子:在子组件中定义props
(驼峰式),在父组件对应的标签中添加对应的:子组件中props对应的值
动态属性(横杠式)
子传父:在子组件中使用this.$emit('标签中@后面的名称', 需要传的值)
,在父组件对应的标签中添加对应的@子组件调用的名称
事件