how can current file name i'm in, using dojo. have javascript file , break point within file. want know file name. , using dojo or javascipt want name of file
any highly appreciated thank you
if using amd (dojo 1.7+) can module id of current module special module
module:
define([ 'module' ], function (module) { console.log(module.id); });
if using legacy dojo modules, filename of script being executed never provided , cannot retrieved in cross-browser way because loaded using xhr , eval
.
Comments
Post a Comment