Making JS local function globally accessible
问题 I have a function inside a function that I need to access directly. //############################################################# //# Global vars //############################################################# var canvasWidth = 585; var canvasHeight = 780; //############################################################# //# Init the canvas //############################################################# window.onload = function() { initStage(); }; //###########################################