当前位置:网站首页>Part 30 supplement (30) ECMAScript object
Part 30 supplement (30) ECMAScript object
2022-06-27 17:03:00 【Embedded workplace】
1、 Reference type
Reference types are often called classes (class), in other words , Encountered reference value , What we're dealing with is objects .
The object is new Operator plus the name of the object to be instantiated . for example , The following code creates Object Instance of object :
var f = new Object()If there are no parameters , Brackets can be omitted :
var f = new Object- Although parentheses are not required , But it is better to use parentheses ;
2、Object object
- CMAScript All objects in are inherited from this object ;
- Object All properties and methods in the object appear in other objects ;
Object Object has the following properties :
constructor
Reference to the function that created the object ( The pointer ). about Object object , The pointer points to the original Object() function .
Prototype
A reference to the object prototype of the object . For all objects , It returns... By default Object An instance of an object .
Object Object also has several methods :
hasOwnProperty(property)
Determine whether an object has a specific attribute . have to
边栏推荐
- Raspberry pie preliminary use
- Solving Poisson equation by tensorflow
- The time of localdatetime type (2019-11-19t15:16:17) is queried with the time range of Oracle
- 深耕数字化,引领云原生,服务更多开发者
- d3dx9_ How to repair 32.dll? d3dx9_ Solution to 32.dll missing
- Mihayou sued Minmetals trust, which was exposed to product thunderstorms
- 2/14 preliminary calculation geometry
- 等保2.0密码要求是什么?法律依据有哪些?
- 简历如何去写?
- Leetcode 704. Binary search
猜你喜欢

关于#mysql#的问题:问题遇到的现象和发生背景

数组表示若干个区间的集合,请你合并所有重叠的区间,并返回 一个不重叠的区间数组,该数组需恰好覆盖输入中的所有区间 。【LeetCodeHot100】

EMQ helps Qingdao Yanbo build a smart water platform

Oracle concept II

软件测试学习-黑马程序员,软件测试学习大纲

Etcd可视化工具:Kstone部署(一),基于Helm快速部署
P.A.R.A 方法在思源的简易应用(亲测好用)

07. Express routing

Mihayou sued Minmetals trust, which was exposed to product thunderstorms
![[fxcg] today's market analysis](/img/97/fc6faa5ab693e383f085b407ce1d85.jpg)
[fxcg] today's market analysis
随机推荐
Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie
EMQ 助力青岛研博建设智慧水务平台
Adaoracle supports multi chain distributed Oracle with wide area node quotation
数组表示若干个区间的集合,请你合并所有重叠的区间,并返回 一个不重叠的区间数组,该数组需恰好覆盖输入中的所有区间 。【LeetCodeHot100】
Delete duplicate elements in the sorting linked list
How to modify / display GPIO status through ADB shell
A robot is located in the upper left corner of an M x n grid. The robot can only move down or right one step at a time. The robot attempts to reach the lower right corner of the grid. How many differe
leetcode 82. Delete duplicate Element II in the sorting linked list
Qt5 signal and slot mechanism (basic introduction to signal and slot)
当发布/订阅模式遇上.NET
Etcd可视化工具:Kstone部署(一),基于Helm快速部署
Construction and management practice of ByteDance buried point data flow
A large number of missing anchor text
Pragma once Usage Summary
模拟进程调度
Popularization of MCU IO port: detailed explanation of push-pull output and open drain output
How to improve it electronic equipment performance management
SQLite net (SQLite is used by unity, WPF and WinForm)
Hongmeng makes efforts! HDD Hangzhou station · offline salon invites you to build ecology
C système de gestion de la charge de travail des enseignants en langues