Home > Article > Web Front-end > Display the calendar directly on the page_html/css_WEB-ITnose
I want to call a javascript directly on the html page to display the calendar directly without clicking. How should I write the declaration and reference part of the html? calender.js is placed in the js folder in the same directory as the current html
First quote the calender file
3a95ae9db4f2847c2f2932c3f8392d292cacc6d41bbb37262a98f745aa00fbf0
Call the calender method in window.onload =
window. Where to write onload? I inserted it into the table to display it
b6c5a531a458a2e790c1fd6421739d1c
4744a137f0f4303e2275b4148e14cba9 b90dd5946f0946207856a8a37f441edf
In this case, you need to click. How to display it directly?
<script type="text/javascript" src="calender.js"></script> <script type="text/javascript"> window.onload = function(){ //调用calender方法 }
Thank you. I changed the display mode. Anyway, I just want to display it. Just a date and time