因为你的hide1, hide2是局部变量, 所以在全局作用域内是访问不到的
解决方案
A
function NUMfc(num){ ... window.hide1 = ... window.hide2 = ... ...}
B
Hide = {}function NUMfc(num){ ... Hide[1] = ... Hide[2] = ... ...}if (Hide[1]){document.....}