拿button组件举例 。 button.vue <template> <Button v-bind="$attrs"> <slot></slot> </Button> </template> <script> import {Button} from "element-ui"; export de ...
分类:
其他好文 时间:
2020-07-03 15:51:48
阅读次数:
113
/*arr=['a','b'] 1、forEach >只遍历,不返回任何内容 arr.forEach(function(item,index,arr){}) 2、map >会返回回调函数中return的内容组成数组,这个数组的长度与原数组相同,而且按原数组对应位置返回内容 arr.map((item ...
分类:
编程语言 时间:
2020-07-03 14:07:20
阅读次数:
63
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title></title> </head> <body> <input type="button" value="按钮1" onclick="a()"/> <input type="but ...
分类:
Web程序 时间:
2020-07-03 12:39:16
阅读次数:
104
实体对象数据转结构体 //原始对象 Test test = new Test(); test.Name = "反射"; var props = test.GetType().GetProperties(); StructData structData = new StructData(); Obje ...
分类:
其他好文 时间:
2020-07-03 01:18:02
阅读次数:
86
给两个整数数组 A 和 B ,返回两个数组中公共的、长度最长的子数组的长度。 示例 1: 输入: A: [1,2,3,2,1] B: [3,2,1,4,7] 输出: 3 解释: 长度最长的公共子数组是 [3, 2, 1]。 说明: 1 ? len(A), len(B) ? 1000 0 ? A[i] ...
分类:
编程语言 时间:
2020-07-03 01:17:50
阅读次数:
94
在由若干 0 和 1 组成的数组 A 中,有多少个和为 S 的非空子数组。 示例: 输入:A = [1,0,1,0,1], S = 2 输出:4 解释: 如下面黑体所示,有 4 个满足题目要求的子数组: [1,0,1,0,1] [1,0,1,0,1] [1,0,1,0,1] [1,0,1,0,1] ...
分类:
编程语言 时间:
2020-07-03 00:31:48
阅读次数:
82
1.程序计数器 1. 什么是PC寄存器(程序计数器)? JVM中的程序计数寄存器(Program Counter Register)中,Register的命名源于CPU的寄存器,寄存器存储指令相关的现场信息。CPU只有把数据装载到寄存器才能够运行。JVM中的PC寄存器并不是广义上所指的物理寄存器,是 ...
分类:
其他好文 时间:
2020-07-02 20:08:30
阅读次数:
63
1 public class SLList{ 2 //定义节点类型 3 public static class IntNode{ 4 public int item; 5 public IntNode next; 6 //构造方法,对对象初始化 7 public IntNode(int i,IntN ...
分类:
编程语言 时间:
2020-07-02 20:05:35
阅读次数:
109
先来看解释 : (PHP 4, PHP 5, PHP 7) call_user_func — 把第一个参数作为回调函数调用 通过函数的方式回调<?php function barber($type){ echo "you wanted a $type haircut, no problem\n";} ...
分类:
其他好文 时间:
2020-07-02 18:30:36
阅读次数:
63
1、查看详情 (1)在index页面定义要跳转的页面,并将被点击的一个条目的id传递给详情页: <navigator class="topic_list" wx:for="{{lists}}" wx:key="index" url="../datail/detail?id={{item.id}}"> ...
分类:
微信 时间:
2020-07-02 18:28:22
阅读次数:
95