|
|
@ -26,6 +26,8 @@ function extDataCache(jkdata) { |
|
|
|
} |
|
|
|
} |
|
|
|
//截取中间字符
|
|
|
|
//截取中间字符
|
|
|
|
function getContentBetween(str, prefix, suffix) { |
|
|
|
function getContentBetween(str, prefix, suffix) { |
|
|
|
|
|
|
|
log(prefix); |
|
|
|
|
|
|
|
log(suffix); |
|
|
|
const regex = new RegExp(prefix + '(.*?)' + suffix, 's'); // 's' 使 . 匹配换行符
|
|
|
|
const regex = new RegExp(prefix + '(.*?)' + suffix, 's'); // 's' 使 . 匹配换行符
|
|
|
|
const match = str.match(regex); |
|
|
|
const match = str.match(regex); |
|
|
|
return match ? match[1] : ''; |
|
|
|
return match ? match[1] : ''; |
|
|
|