This commit is contained in:
2025-06-16 10:09:19 +08:00
commit 7a066b3026
428 changed files with 50385 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)
}