javascript - Find all jQuery scope stuff -
as know jquery scope contains namespace jquery plugins. there way list jquery loaded stuff in jquery scope? best example of question phpinfo() in php, lists loaded stuff of php.
this should okay
for (var plugin in $.fn) { if ($.fn.hasownproperty(plugin)) { console.log(plugin); } }
if es5 supported, can use
var plugins = object.keys($.fn).sort().join(", "); console.log(plugins);
i think produces nicest output
Comments
Post a Comment