官网 管理后台
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.

пре 1 година
12345678910111213141516171819202122232425262728293031
  1. jQuery.extend({
  2. baseUrl: "//xhwebapitest.xhkjedu.com/",
  3. showImageUrl: "//schoolstatictest.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. // 读取url参数
  19. getQueryVariable: function(variable) {
  20. let query = window.location.search.substring(1);
  21. query = decodeURI(query);
  22. let vars = query.split("&");
  23. for (let i = 0; i < vars.length; i++) {
  24. let pair = vars[i].split("=");
  25. if (pair[0] === variable) {
  26. return pair[1];
  27. }
  28. }
  29. return false;
  30. }
  31. });