/*** 함수의 공식 매개 변수 수를 가져옵니다* @param {function} func [획득 할 함수]* @return {*} [공식 매개 변수 또는 정의되지 않은 배열]*/function getFuncParameters (func) {if (typeof func == 'function') {var mathes = /;^(=)* :) ?/)/gm.exec(function.prototype.tostring.call (func)); if (mathes [1]) {var args = mathes [1] .replace (/[^,/w]*/g, '') .split ( ','); 반환 args; }}}