I often use the url hash (http://host/#hash) to do quick debug, like keep track of a specific string variable with no need to open the dev console. It works just fine for me, but I wonder if this is a behavior that I should recommend to my students or using this to debug is somehow a bad practice?
var s = 'a string';
location.hash = s;
Aucun commentaire:
Enregistrer un commentaire