<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<script>
var name = "The Window";
var object = {
name : "My Object",
getNameFunc : function(){
return function(){
return this.name;
};
}
};
alert(object.getNameFunc()());
</script>
</head>
</html>
添加回答
举报
0/150
提交
取消