久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      jquery怎么獲取星期幾

      jquery獲取星期幾的方法:首先新建一個html文件,并創(chuàng)建一個數(shù)組week;然后使用“new Date()”獲得今天的時間,并保存在mydd變量中;接著使用getDay方法獲得今天星期的數(shù)字;最后從數(shù)組week中取出星期的中文名稱即可。

      jquery怎么獲取星期幾

      推薦:《jquery教程》

      • 該方法適用于所有品牌電腦。

      新建一個html文件,命名為test.html,用于講解jquery怎么獲取今天星期幾。

      jquery怎么獲取星期幾

      在test.html文件內(nèi),創(chuàng)建一個數(shù)組week,數(shù)組內(nèi)保存星期的中文名稱。

      jquery怎么獲取星期幾

      在test.html文件內(nèi),使用new Date()獲得今天的時間,保存在mydd變量中。

      jquery怎么獲取星期幾

      在test.html文件內(nèi),通過今天的時間對象,使用getDay()方法獲得今天星期的數(shù)字。數(shù)字0為星期天,數(shù)字1至6為星期一至星期六。

      jquery怎么獲取星期幾

      在test.html文件內(nèi),通過上一步星期的數(shù)字,從數(shù)組week中取出星期的中文名稱,并使用alert()方法輸出。

      jquery怎么獲取星期幾

      在瀏覽器打開test.html文件,查看結(jié)果。

      jquery怎么獲取星期幾

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號