Home  >  Article  >  Web Front-end  >  js word form operators_basic knowledge

js word form operators_basic knowledge

WBOY
WBOYOriginal
2016-05-16 16:49:431030browse

1.void operates the expression and ignores its return value, such as void (1 2), void (0)

Copy code The code is as follows:







1. Use onclick event for flexible processing; 2.void(expression)

Baidu
Google


2.typeof returns the type of variable or value, such as typeof(void 1 2) ,typeof(void(1 2))

Due to operator precedence, the operation process of void 1 2 is:

js word form operators_basic knowledge

3.new is used to create an object instance column of the specified class

4.delete deletes the instance column attribute. There are several points that must be paid attention to when deleting:

1. Only the actual column attributes will be deleted, but the object will not be deleted

Copy code The code is as follows:









Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn