123456789101112131415161718 |
- jQuery.extend({
- baseUrl: "//xhwebapitest.xhkjedu.com/",
- showImageUrl: "//schoolstatic.xhkjedu.com/static/",
- //毫秒时间转换为yyyy-MM-dd
- msToDateString: function (ms) {
- let date = new Date(ms);
- let year = date.getFullYear();
- let month = date.getMonth() + 1;
- let day = date.getDate();
- if (month < 10) {
- month = "0" + month;
- }
- if (day < 10) {
- day = "0" + day;
- }
- return year + "-" + month + "-" + day;
- },
- });
|