<SCRIPT LANGUAGE="JavaScript"> <!-- function F(){ this.a = 'a'; this.run = function(){ for(i = 0; i < 4; i++){ } }; } //函数直接量 function(){} //document.body.onload = function(){alert('加载完成')}; var f = new F(); var s = new String(); var arr = new Array(); var o = new String('oo'); var u ; var n = 1; for(i = 0; i < 3; i++){ //alert(i); } f.run(); b = 1; eval('o["'+ b +'"] = "bbb"'); //alert(window.o[b]); alert(n instanceof Number); //alert(typeof(n)); //alert(o.constructor); Object.prototype.o = 'ooooo1'; alert(n.o); //--> </SCRIPT>