<body> <div id="app"> <!-- 2.监听子组件发射的事件 然后再父组件处理事件 --> <cpn @itemclick="cpnClick"></cpn> </div> <template id="cpn"> <div> <button v-for="item in categ ...
分类:
其他好文 时间:
2021-01-02 11:26:02
阅读次数:
0
// 事件(Event)机制 const EventEmitter = require('events'); const emitter = new EventEmitter(); // 侦听一个事件 emitter.on("a", (event) => { console.log(event + ...
分类:
其他好文 时间:
2021-01-01 12:51:35
阅读次数:
0
1 public class MyClass 2 { 3 public static void UseParams(params int[] list) 4 { 5 for (int i = 0; i < list.Length; i++) 6 { 7 Console.Write(list[i] + ...
在Tcl Console中输入如下命令: set_param general.maxThreads 8 检查是否设置成功: get_param general.maxThreads “跑分”试验如下: 主机配置: 工程一: Vivado版本:2018.3 FPGA型号:xc7z100ffg900-2 ...
分类:
编程语言 时间:
2021-01-01 11:56:34
阅读次数:
0
异步的概念 ajax 编程 异步实现的几种方式 回调函数 promise 生成器 async await 异步编程的概念 有异步编程,就有同步编程 console.log("Hello"); console.log("World"); for(let i=0;i<5;i++){ console.lo ...
分类:
Web程序 时间:
2020-12-31 12:10:41
阅读次数:
0
##两个##是二级标题 *** 三个星号是 分割线 无序列表 前面加- 或者*) 有序列表前面加数字( 如1,2,3,) 引用 前面加 > 链接文本说明 插入图片 :  console.log(a) ...
分类:
其他好文 时间:
2020-12-31 11:42:33
阅读次数:
0
1、任何类型+“”=字符串类型 2、泛型(动态数组): List<int> a = new List<int>(); List<数据类型> 名字 = new List<数据类型>(); 3、string转换为int: string s=Console.ReadLine(); int a=Conver ...
<script> axios.defaults.baseURL='http://localhost:8080/student';//配置全局属性 axios.defaults.timeout=10000;//超时10s axios.get('getAllstudent').then(res=>{// ...
分类:
移动开发 时间:
2020-12-30 10:59:44
阅读次数:
0
Stream 是一个抽象接口,Node 中有很多对象实现了这个接口。例如,对http 服务器发起请求的request 对象就是一个 Stream,还有stdout(标准输出)。 Node.js,Stream 有四种流类型: Readable - 可读操作。 Writable - 可写操作。 Dupl ...
分类:
Web程序 时间:
2020-12-30 10:57:51
阅读次数:
0
判断是否为空 console.log(this.validatenull(obj1)) 对象深拷贝 var obj1 = { name:'张三' } var obj2 = this.deepClone(obj1); 下拉项为字典 { label: "类型", prop: "type", rules: ...
分类:
其他好文 时间:
2020-12-30 10:39:18
阅读次数:
0