当前位置:网站首页>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
边栏推荐
- IDE Eval reset unlimited trial reset
- leetcode 69. Square root of X
- leetcode 92. Reverse linked list II
- Hongmeng makes efforts! HDD Hangzhou station · offline salon invites you to build ecology
- d3dx9_ 39.dll how to repair -d3dx9_ 39.dll missing file download
- Qt5 signal and slot mechanism (demonstrate the correlation between the control's own signal and slot function)
- 06. First introduction to express
- 关于VS2019C#如何建立登陆界面输入的用户名和密码需与Access数据库的记录相匹配
- Oracle concept II
- leetcode 142. Circular linked list II
猜你喜欢

Simulated process scheduling

Handling method of occasional error reporting on overseas equipment

Yyds dry inventory solution sword finger offer: a path with a certain value in the binary tree (3)

Smart wind power | Tupu software digital twin wind turbine equipment, 3D visual intelligent operation and maintenance

Hongmeng makes efforts! HDD Hangzhou station · offline salon invites you to build ecology

Hung - Mung! HDD Hangzhou station · salon hors ligne vous invite à construire l'écologie

Autodesk NavisWorks 2022 software installation package download and installation tutorial

d3dx9_ Where is 35.dll? d3dx9_ Where can I download 35.dll

d3dx9_ 39.dll how to repair -d3dx9_ 39.dll missing file download

09 route guard authenticates URL
随机推荐
ROS "topic" programming implementation
leetcode 200. Number of islands
Leetcode 704. Binary search
Array represents a collection of several intervals. Please merge all overlapping intervals and return a non overlapping interval array. The array must exactly cover all the intervals in the input. 【Le
Oracle concept II
Alibaba cloud liupeizi: Inspiration from cloud games - innovation on the end
华为云首次解读云原生2.0十大典型架构,加速构建现代化应用
黑马程序员-软件测试基础班-02-30-45工具代开浏览器运行代码,音、视频、测试点,音视频标签,布局标签。超链接语法进阶,绝对路径,相对路径
等保2.0密码要求是什么?法律依据有哪些?
What do fast fashion brands care more about?
d3dx9_ What if 27.dll is lost? d3dx9_ How to repair 27.dll?
Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
C語言教師工作量管理系統
leetcode 142. Circular linked list II
C language course design
Handwritten promise series - all
Ten common methods of arrays tools
What are the password requirements for waiting insurance 2.0? What are the legal bases?
Defiato is an innovation that combines user-friendly features of a centralized platform with defi services
全面解析零知识证明:消解扩容难题 重新定义「隐私安全」