标签:argument tostring ret func turn div return color fun
function argumentNames(fn){ var found = /^[\s\(]*function[^(]*\(\s*([^)]*?)\s*\)/.exec(fn.toString()); return found && found[1] ? found[1].split(/,\s*/) : []; }
标签:argument tostring ret func turn div return color fun
原文地址:http://www.cnblogs.com/halo-yang/p/7895876.html