From 9594cc674f35c35a697e887d94fad564b6259a43 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 13 Jan 2022 00:29:42 +0800 Subject: [PATCH] no message --- resources/assets/js/functions/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/functions/common.js b/resources/assets/js/functions/common.js index e6882683..d2938f8d 100755 --- a/resources/assets/js/functions/common.js +++ b/resources/assets/js/functions/common.js @@ -141,7 +141,7 @@ * @param end * @returns {*} */ - getMiddle(string, start, end) { + getMiddle(string, start = null, end = null) { string = string.toString(); if (this.isHave(start) && this.strExists(string, start)) { string = string.substring(string.indexOf(start) + start.length);