ICode9

精准搜索请尝试: 精确搜索
  • uni-app学习笔记(2)2022-03-03 16:06:56

    文章目录 1、vue生命周期2、计算属性、方法、监听3、父子组件传值4、组件参数校验 1、vue生命周期 vue生命周期图 <template> <view> <button @click="click">提交</button> <view> {{text}} </view> </view> </template> <script> export

  • 隔行换色2022-03-02 19:32:54

    Documen <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content=&qu

  • 1004 Counting Leaves2022-03-02 15:35:10

    1004 Counting Leaves A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each input file contains one test case. Each case starts with a line containing 0<N<10

  • vue父组件中调用子组件的方法2022-03-01 10:04:26

     方案一:通过ref直接调用子组件的方法; //父组件中 <template> <div> <Button @click="handleClick">点击调用子组件方法</Button> <Child ref="child"/> </div> </template> <script> import Child

  • CSS3 - :nth-child()选择前几个元素2022-02-28 17:32:36

    /* 选择第n个,n位数字 */ :nth-child(n) 选择列表中的偶数标签 :nth-child(2n) 选择列表中的奇数标签 :nth-child(2n-1) 选择前几个元素 /*【负方向范围】选择第1个到第6个 */ :nth-child(-n+6){} 从第几个开始选择 /*【正方向范围】选择从第6个开始的,直到最后 */ :nth-child

  • css3,css的基础全局运用2022-02-25 20:04:34

    浮动 1.浮动起来的盒子不占用位置,浮动了一个盒子下面的标准流的盒子会顶上来 ​ 可用清除浮动的方法来解决标准流会顶替位置的问题 清除浮动给父盒子加overflow: hidden; 鼠标经过事件 :hover为鼠标经过事件 ​ transform给盒子一个移动效果 可用于鼠标经过事件 .daohang ul li:ho

  • nth-child()用法2022-02-25 15:04:00

    nth-child()用法 nth-child(number) 表示第几个子元素   .div:nth-child(2) /*表示第二个子元素*/.div:nth-child(4) /*表示第四个子元素*/ nth-child(odd)和nth-child(even) nth-child(odd)表示取出奇数的子元素,即取出第1,3,5,...个子元素 nth-child(even)表示取出偶数的子元

  • Web前端面试问题集锦2022-02-24 22:35:15

    天坑专业转行开始找实习啦,自己水平不够,边看别人的面经边总结相关的知识吧。 一. HTML/5 二. CSS/3 2.1 有很多li标签且顺序不固定,怎么把最后一个class为b的li改为红色 <ul> <li class="a" /> <li class="b" /> <li class="b" /> <li class="a" />

  • vue2父传子,子传父2022-02-24 19:01:38

    首先看父传子 自定义一个子组件 <template> <div> 子组件: <span>{{inputName}}</span> </div> </template> <script> export default { //接收父组件传递的数据 props: { inputName: String, }, } </script> <style> <

  • PAT甲级10042022-02-22 23:34:07

    代码参考漂流瓶大佬,以下是原文链接。[PAT甲级 1004.Counting Leaves (30) 题目翻译与答案]先传代码,明天再修改。(https://blog.csdn.net/qq278672818/article/details/54915636) #include <iostream> #include <algorithm> using namespace std; struct Node { int father;

  • vue3 vue-router 匹配多级路由2022-02-22 23:06:25

    Nested Routes It’s worth noting that nested routes will match only if the params relevant to the rendered route are the same. E.g., given these routes: const routes = [ { path: '/parent/:id', children: [ // empty child { pa

  • vue插槽的使用2022-02-22 18:04:10

    什么是插槽? 插槽就是子组件中提供给父组件使用的一个占位符,用<slot></slot> 表示,父组件可以在这个占位符中填充任何模板代码,如 HTML、组件等,填充的内容会替换子组件的<slot></slot>标签。 插槽又分为匿名插槽、具名插槽以及作用域插槽。 1、匿名插槽 匿名插槽,又可以叫它单个插槽或

  • [Flutter] url_launcher实现打开外部应用2022-02-20 23:03:48

    url_launcher打开外部应用 配置依赖 url_launcher: ^6.0.20 配置权限 /*与application同级*/ <queries> <!-- If your app opens https URLs --> <intent> <action android:name="android.intent.action.VIEW" />

  • vue父子组件传值2022-02-20 18:35:14

    1、父组件向子组件传值 子组件通过props接收父组件传过来的值 <template> <div class="header"> <span>{{farter}}</span> </div> </template> <script> export default { name:"erzi", props:[ type

  • u-boot dm驱动模型-udevice和driver2022-02-20 17:31:33

    设备 /* SPDX-License-Identifier: GPL-2.0+ */ /*  * Copyright (c) 2013 Google, Inc  *  * (C) Copyright 2012  * Pavel Herrmann <morpheus.ibis@gmail.com>  * Marek Vasut <marex@denx.de>  */ #ifndef _DM_DEVICE_H #define _DM_DEVICE_H #include <d

  • 堆结构c/c++2022-02-20 10:31:05

    c语言堆 一、定义: “优先队列” (Priority Queue)是特殊的“队列”,从堆中取出元素的顺序是依照元素的优先权(关键字)大小,而不是元素进入队列的先后顺序。采用完全二叉树存储的优先队列 称为堆(Heap)。 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-nSQ3

  • u-boot uclass_add函数2022-02-19 13:03:24

    /** * uclass_add() - Create new uclass in list * @id: Id number to create * @ucp: Returns pointer to uclass, or NULL on error * @return 0 on success, -ve on error * * The new uclass is added to the list. There must be only one uclass for * each id.

  • 2022-2023年英语周报七年级第26期答案汇总2022-02-19 08:32:33

    进入查看: 2022-2023年英语周报七年级第26期答案汇总   In recent years research on infant development has shown that the standard a child is likely to reach, within the range of his inherited[遗传的] abilities, is largely determined in the first three years of hi

  • UGUI RectTransformUtility2022-02-17 23:33:55

    RectTransformUtility: public static Bounds CalculateRelativeRectTransformBounds (Transform root, Transform child); public static Bounds CalculateRelativeRectTransformBounds (Transform trans) ; 计算包围盒 // 计算 child 在屏幕坐标系的包围盒 RectTransformUtility

  • ♣ css3选择器、伪类、伪元素2022-02-15 23:33:13

    选择器 CSS2.1中,选择器7种: id选择器 #box 类选择器 .red 标签选择器 p 后代 div p 交集   div.red 并集   div,p 通配符   * 关系选择符 >  儿子,亲儿子,不是后代,必须是儿子 + next sibling,下一个兄弟 ~   next all siblings ,下所有兄弟 不要加空格,因为CSS中的空格有后代的意

  • 1075: 聚餐人数统计2022-02-11 10:33:33

      题目描述 马克思手稿中有这样一道趣味数学题:男人、女人和小孩总计n个人,在一家饭店里吃饭,共花了cost先令,每个男人各花3先令,每个女人各花2先令,每个小孩各花1先令,请用穷举法编程计算男人、女人和小孩各有几个。 输入 输入两个正整数,表示人数n和花费cost。 输出 若问题有

  • 数据结构----二叉树和堆的操作2022-02-10 20:00:57

    这里是二叉树的删除:#include <bits/stdc++.h> using namespace std; typedef struct TNode *BinTree; struct TNode { int Data; BinTree Left; BinTree Right; }; BinTree NewNode(int num); BinTree Insert(BinTree BST, int num); BinTree FindRMin(BinTree BST)

  • 结构伪类选择器2022-02-10 12:32:00

    伪类:条件 /*ul的第一个子元素*/ ul li:first-child{ background: green; } /*ul的最后一个子元素*/ ul li:last-child{ background: seagreen; } /*选中p1:定位到父元素,选择当前的第一个元素

  • 【万字好文】二叉树从入门到精通(树、二叉树、堆、深度广度优先遍历、二叉树练习题.....)2022-02-09 23:32:51

    二叉树 1.树概念及结构1.1树的概念1.2 树的相关概念1.3 树的表示 2.二叉树概念及结构性质2.1概念2.2特殊的二叉树2.3二叉树的性质(重要!!!)2.4 二叉树的存储结构 3.二叉树的顺序结构及实现3.1 堆的概念及结构3.2 堆的实现3.2.1 堆向下调整算法(时间复杂度为:O(logN))3.2.2堆的创建(

  • 操作系统真象还原实验记录之实验三十三:实现系统调用wait和exit2022-02-09 09:04:47

    操作系统真象还原实验记录之实验三十三:实现系统调用wait和exit 1.wait、exit、孤儿进程、僵尸进程 exit由子进程调用,表面上功能是使子进程结束运行并传递返回值给内核,本质上是内核在幕后回收该子进程除了pcb一页外的所有资源。 wait由父进程调用,表面上功能是使父进程阻塞自己

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有