星火官网,前端页面(前台)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 487B

123456789101112131415161718
  1. jQuery.extend({
  2. baseUrl: "//xhwebapitest.xhkjedu.com/",
  3. showImageUrl: "//schoolstatic.xhkjedu.com/static/",
  4. //毫秒时间转换为yyyy-MM-dd
  5. msToDateString: function (ms) {
  6. let date = new Date(ms);
  7. let year = date.getFullYear();
  8. let month = date.getMonth() + 1;
  9. let day = date.getDate();
  10. if (month < 10) {
  11. month = "0" + month;
  12. }
  13. if (day < 10) {
  14. day = "0" + day;
  15. }
  16. return year + "-" + month + "-" + day;
  17. },
  18. });