javaScript中eval函数构造全局变量fun function() {eval(hello {})}fun()alert(hello) ?调用fun()
javaScript中eval函数构造全局变量
fun = function() {eval('hello = {}');}fun()alert(hello) ;?调用fun()函数,变量hello是全局变量,提示:[object Object] javaScript中eval函数构造全局变量
fun = function() {eval('hello = {}');}fun()alert(hello) ;?调用fun()函数,变量hello是全局变量,提示:[object Object]