One, the actual effect:
Second, the specific realization ideas
However, this timer has not been turned off. This timer should be turned off at the appropriate location.
Because the transmitted data is in base64 format, it also needs to be drawn as a QR code on the page.
The html tag used is canvas, which provides an API that can draw on the element using js code,
and then use
npm install --save qrcode
You can draw a QR code: