更新 'SrcJyPublic.js'

master
src48597962 7 months ago
parent 76b5ebe827
commit d8205f9c13
  1. 16
      SrcJyPublic.js

@ -175,6 +175,22 @@ function getDatas(lx, isyx) {
let result = withoutStop.concat(withStop); let result = withoutStop.concat(withStop);
return result; return result;
} }
// 获取接口tags
function getJkTags(datas){
datas = datas || getDatas('jk', 1);
let tags = [];
datas.forEach(it=>{
let str = it.name;
let regex = /\[(.*?)\]/;
let match = str.match(regex);
if (match) {
if(tags.indexOf(match[1])==-1){
tags.push(match[1]);
}
}
})
return tags;
}
//获取在线文件内容 //获取在线文件内容
function getJkContnet(url) { function getJkContnet(url) {
if(!url.startsWith('http')){ if(!url.startsWith('http')){

Loading…
Cancel
Save