码迷,mamicode.com
首页 >  
搜索关键字:new function    ( 125057个结果
2.11类中的访问类型与构造器
// 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
裁剪PNG图片透明部分
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
C#ImmutableList和ReadOnlyCollection的区别
var intList = new List<int>() { 1 }; var readOnlyList = new ReadOnlyCollection<int>(intList); var immutableList = intList.ToImmutableList(); Console.F ...
分类:Windows程序   时间:2021-06-02 20:35:02    阅读次数:0
插着USB mic开机时,系统没有声音问题
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
this指向
1.作为普通函数调用this指向全局 2.作为构造函数new 调用this指向实例 不用new指向全局 3.箭头函数this指向它的上一层函数的this 4.对象调用函数内方法,this指向该对象 5.apply /call/ bind指向传入的对象 ...
分类:其他好文   时间:2021-06-02 20:26:58    阅读次数:0
初识Promise
首先说一下什么是构造函数:构造函数,是一种特殊的方法。主要用来在创建对象时初始化对象, 即为对象成员变量赋初始值,总与new运算符一起使用在创建对象的语句中。特点:1.构造函数的功能主要用于在类的对象创建时定义初始化的状态。2.构造函数不能被直接调用,必须通过new运算符在创建对象时才会自动调用;而 ...
分类:其他好文   时间:2021-06-02 20:22:37    阅读次数:0
this 详细介绍(MDN)
参考:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/this 值: 当前执行上下文(global、function 或 eval)的一个属性,在非严格模式下,总是指向一个对象,在严格模式下可以是 ...
分类:其他好文   时间:2021-06-02 20:18:08    阅读次数:0
RedisConfig 配置
import com.alibaba.fastjson.support.spring.GenericFastJsonRedisSerializer; import org.springframework.cache.CacheManager; import org.springframework.c ...
分类:其他好文   时间:2021-06-02 20:05:07    阅读次数:0
js封装一个集合
// 基于对象封装一个集合 function Set() { // 属性 this.items = {}; // 方法 // add 往集合中添加元素 Set.prototype.add = function (value) { // 先判断是否有这个元素 if (this.has(value)) ...
分类:Web程序   时间:2021-06-02 20:02:42    阅读次数:0
125057条   上一页 1 ... 34 35 36 37 38 ... 12506 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!