Several common basic simple judgments in js, detailed answers to loop syntax
1.if statement
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
3. While statement
1 2 3 |
|
4. Do while statement
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 |
|
6. this
1 2 3 |
|
The pop-up box displays: true.
It can be seen that this is the current window.
The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.
Related articles:
Detailed explanation of the steps to call the cache to implement the JS method
JS summary of judging whether a certain string contains content
How to use the V-bind instruction in VueJs
The above is the detailed content of Detailed answers to js basic syntax. For more information, please follow other related articles on the PHP Chinese website!