Traditional Culture Encyclopedia - The 24 Solar Terms - How does js get the points in years, months, days, minutes and seconds?
How does js get the points in years, months, days, minutes and seconds?
The materials to be prepared are: computer, html editor and browser.
1. First, open an html editor and create a new html file, such as index.html.
2. In index.html
var a = new Date(); document.body.innerHTML?
= ' when:'+a . get hours()+' < br/& gt; points:'+a . get minutes()+' < br/& gt; Seconds: "+a.getseconds ();
3. The browser runs the index.html page. At this point, js gets and prints every minute of the current time.
- Previous article:Tarot solar array
- Next article:What is the English abbreviation of "electronic steering system"
- Related articles
- The painting method of chrysanthemum traditional Chinese painting
- A quiet night with light snow
- Four-word words describing the scenery of spring, summer, autumn and winter
- Tomb-Sweeping Day's Origin Teaching Plan Middle School
- 13 lavida throttle disassembly video
- Reflect the characteristics of winter
- When will water chestnut be listed and harvested?
- Seven-character quatrains in winter
- How to tie five balloons into flowers?
- What are the solar terms in Xia Hou and Xia Hou?