// private protected,public 访问类型 // public 允许在类里面或者外面调用 // private 允许在类内被使用 // protected 允许在类内以及继承的子类中使用 class Person3 { protected age: number; public ...
分类:
其他好文 时间:
2021-06-03 17:44:01
阅读次数:
0
1、主体代码 #region [ 启动记事本 ] System.Diagnostics.Process Proc; try { // 启动记事本 Proc = new System.Diagnostics.Process(); Proc.StartInfo.FileName = "notepad.e ...
分类:
其他好文 时间:
2021-06-02 20:53:03
阅读次数:
0
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
分类:
其他好文 时间:
2021-06-02 20:39:46
阅读次数:
0
var intList = new List<int>() { 1 }; var readOnlyList = new ReadOnlyCollection<int>(intList); var immutableList = intList.ToImmutableList(); Console.F ...
Platform: RockchipOS: Android 7.1.2Kernel: 4.4 1.问题描述:当插上USB mic录音设备开机时,系统没有声音。开机后再接上USB mic,此时声音就正常。 2.问题分析: 接着usb mic开机时,MT100:/ # cat /proc/asound/ ...
分类:
其他好文 时间:
2021-06-02 20:30:25
阅读次数:
0
1.作为普通函数调用this指向全局 2.作为构造函数new 调用this指向实例 不用new指向全局 3.箭头函数this指向它的上一层函数的this 4.对象调用函数内方法,this指向该对象 5.apply /call/ bind指向传入的对象 ...
分类:
其他好文 时间:
2021-06-02 20:26:58
阅读次数:
0
首先说一下什么是构造函数:构造函数,是一种特殊的方法。主要用来在创建对象时初始化对象, 即为对象成员变量赋初始值,总与new运算符一起使用在创建对象的语句中。特点:1.构造函数的功能主要用于在类的对象创建时定义初始化的状态。2.构造函数不能被直接调用,必须通过new运算符在创建对象时才会自动调用;而 ...
分类:
其他好文 时间:
2021-06-02 20:22:37
阅读次数:
0
参考:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/this 值: 当前执行上下文(global、function 或 eval)的一个属性,在非严格模式下,总是指向一个对象,在严格模式下可以是 ...
分类:
其他好文 时间:
2021-06-02 20:18:08
阅读次数:
0
import com.alibaba.fastjson.support.spring.GenericFastJsonRedisSerializer; import org.springframework.cache.CacheManager; import org.springframework.c ...
分类:
其他好文 时间:
2021-06-02 20:05:07
阅读次数:
0
// 基于对象封装一个集合 function Set() { // 属性 this.items = {}; // 方法 // add 往集合中添加元素 Set.prototype.add = function (value) { // 先判断是否有这个元素 if (this.has(value)) ...
分类:
Web程序 时间:
2021-06-02 20:02:42
阅读次数:
0