Author: CSDN @ _乐多_
This article records the use of Vue to implement the time display component, and the code is plug-and-play.
The result is shown in the figure below,
Article directory
1. Configuration environment
Install nodejs, vue3.
2. Code
<template>
<li>
{
{
currentDate }}