Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 899 Bytes

File metadata and controls

37 lines (25 loc) · 899 Bytes

History-Today

用法:在你的<p><span>中加上id="tohis"


示例:

<p id="tohis"></p>


  • 在使用它之前,你需要引用js库:
    1. <script src="https://cdn.jsdelivr.net/gh/softosdev/history-today/tohis.js "></script>
    2. <script src="https://softosdev.github.io/history-today/tohis.js "></script> (不推荐)
  • 或将 tohis.js下载
  • <script src="scripts/tohis.js"></script>


    完整代码:

    <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8">
        <title>历史上的今天</title>
    </head>
    
    <body>
        <p id="tohis"></p>
        <script src="https://cdn.jsdelivr.net/gh/softosdev/history-today/tohis.js"></script>
    </body>
    
    </html>