权限控制

This commit is contained in:
Jason
2022-04-20 12:10:22 +08:00
parent f20f1af16b
commit 143da05631
30 changed files with 322 additions and 550 deletions

View File

@@ -0,0 +1,8 @@
/**
* @description 判断字符串是否是id=1&name=2这种类型
* @param { String } str
* @returns { Boolean }
*/
export function isQuery(str: string) {
return /([^?&=]+)=([^?&=]*)/g.test(str)
}