function argumentNames(fn){ var found = /^[\s\(]*function[^(]*\(\s*([^)]*?)\s*\)/.exec(fn.toString()); return found && found[1] ? found[1].split(/,\s*/) : []; }
超找函数参数名
原文:http://www.cnblogs.com/halo-yang/p/7895876.html