(url_string, param)
| 386 | } |
| 387 | |
| 388 | function getUrlQueryParams(url_string, param) { |
| 389 | let reg = new RegExp("(^|&)" + param + "=([^&]*)(&|$)", "i"); |
| 390 | let r = url_string.split('?')[1].substr(0).match(reg); |
| 391 | if (r != null) { |
| 392 | return decodeURIComponent(r[2]); |
| 393 | }; |
| 394 | return ''; |
| 395 | } |
| 396 | |
| 397 | function format(a, time) { |
| 398 | if (!a) a = 'yyyy-MM-dd'; |