This commit is contained in:
haomingming
2023-04-25 18:05:51 +08:00
parent 596229d478
commit 9e3cb69030
22 changed files with 136 additions and 47 deletions
+12
View File
@@ -0,0 +1,12 @@
var filters = {//截取字符串返回
substring:function(str,start,end){
if(!str){
return
}
//也可做一些判断 //我不需要所以没做其他处理,直接返回的
return str.substring(start,end);
}
}
module.exports = {
substring:filters.substring
}