Summary of how to write JavaScript control statements—–JavaScript

<!DOCTYPE html> <!– This is an HTML comment –> <html lang=”en” id=”myHtml”> <head> <!– This does not set the encoding, but tells the browser what encoding method to use to open the file to avoid garbled characters –> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>HtmlAll</title> </head> <body> <script type=”text/javascript” src=”j.js”></script> <table align=”center”> <form id=”myForm”> <tr><td>Login […]

if/switch statement and for loop while&to….while in JS

In any programming language, it is necessary to support three types of process control required to satisfy program structuring: Sequence control Branch control (conditional control) loop control Sequential control: In program flow control, the most basic thing is sequence control. The program will be executed in top-down order. if statement (commonly used statements in JS) […]

[Mango] Use explain() to view the execution plan of mongodb query statement

Use explain() to view the execution plan of the mongodb query statement Similar to relational databases such as MySQL and Oracle, MongoDB calculates the optimal query plan for each query statement through the query optimizer, including selected indexes, query time, scanned records, number of scanned indexes, alternative execution plans, etc. information. This article introduces using […]

(StateFlow & ShareFlow) VS (Flow & LiveData)

Table of Contents data flow General process Switch thread StateFlow & ShareFlow StateFlow Build StateFlow &ShareFlow In the previous articles on Flow, collect function analysis and imitation of Flow builder to create data flow articles, we explored the simple use of flow and its simple principles. However, during the production process, we often borrow these […]

Statistical universal package for data query of day, week, month, quarter and year in JAVA code

Table of Contents background ?edit Implementation ideas Package structure Rule engine call entry Call execution strategy Rule engine detailed code TimeConditionExpression.java TimeConditionType.java TimeConditionRule.java TimeConditionRuleEngine.java MergeRank.java TimeConditionInvocationHandler.java Next are 5 rule implementation classes DayConditionRule.java WeekConditionRule.java MonthConditionRule.java QuarterConditionRule.java YearConditionRule.java The final output data structure is as follows: Background In work, it is often necessary to perform statistical […]

[Linux] Station Thirteen: Process Status

Article directory 1. Process status 1. Running status 2. Blocked state 3. Suspended state 2. Specific process status in Linux 1. Status in Linux 2.R state 3.S state 4.D state 5.T, t state 6.X state (dead) 7.Z state (zombie) 8. Summary of zombie processes 9. Summary of orphan processes 1. Process status In our general […]

VMware Workstation 15 Pro install Centos7

Note: VMware Workstation 15 Pro + windows10 system is relatively stable Windows11 + VM15 may cause a blue screen. Windows11 recommends a higher version of VM; centos7 download address: centos-7-isos-x86_64 installation package download_open source mirror station-Alibaba Cloud (aliyun.com) Table of Contents 1. Install VMware Workstation 15 Pro virtual machine 2. Install Centos7 steps 3. Virtual […]

How to use Synology NAS’s Audio Station combined with intranet penetration to achieve remote access to the local music library

Article directory The problem this tutorial solves is: After following this tutorial method, the effect achieved is: The environment used for this tutorial: 1 Install audiostation package on Synology system 2 Download the mobile app 3 Intranet penetration, mapping to public network Many old people want to listen to their favorite songs or cross talk […]