上代码:
<script>
var gVariable = "hey";
function gFunc(){}
function go(){
var lVariable = gVariable ;
document.write("some");
window.execScript( 'alert ( typeof gVariable)' );
window.execScript( 'alert ( typeof gFunc)' );
window.execScript( 'alert ( typeof lVariable)' );
}
window.onload = go;
</script>
直接alert就行,用execScript就是3个undefined,也就是说全局的变量、函数、局部的
变量定义都木有了??
--
FROM 211.99.222.*