This commit is contained in:
xixingwl
2023-02-04 08:50:14 +08:00
commit 98cfbb0b77
89 changed files with 9508 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
/**
* 判断参数是否含有回调参数 success / fail / complete 之一
* @param {string} field 参数的 Key 值字符串
* @returns {boolean} 返回判断值
*/
export default function isCallback(field) {
return ['success', 'fail', 'complete'].includes(field)
}