ObjectAttribute.js
2016-04-12 22:55
447 查看
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> ObjectAttribute.html </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<script type="text/javascript">
var lennon={name:"John",year:1940,living:false};
var beatles=Array();
beatles['vocalist']=lennon;
alert(beatles.vocalist.name);alert(beatles.vocalist.year);alert(beatles.vocalist.living);
var beatles2={};
beatles2.vocalist=lennon;
alert(beatles2.vocalist.name);alert(beatles2.vocalist.year);alert(beatles2.vocalist.living);
</script>
</body>
</html>
<html>
<head>
<title> ObjectAttribute.html </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<script type="text/javascript">
var lennon={name:"John",year:1940,living:false};
var beatles=Array();
beatles['vocalist']=lennon;
alert(beatles.vocalist.name);alert(beatles.vocalist.year);alert(beatles.vocalist.living);
var beatles2={};
beatles2.vocalist=lennon;
alert(beatles2.vocalist.name);alert(beatles2.vocalist.year);alert(beatles2.vocalist.living);
</script>
</body>
</html>
相关文章推荐
- OC学习日记Day1:程序怎么执行、类和对象
- Attach、Detach和DeleteObject
- Qt Meta Object System-元对象系统
- For语句去循环,Objective C 提供一个Block的遍历方法
- 【NodeJs】用arrayObject.join('')处理粘包的错误原因
- javascript学习笔记 - 引用类型 Object
- Objective-C 字符串NSString
- Objective-C 面向对象的编程语言
- 解决a different object with the same identifier value was already associated with the session错误
- Objective-C修改cell左滑按钮背景色
- 关于SQLite,java.lang.IllegalStateException: attempt to re-open an already-closed object
- IOS基础:深入理解Objective-c中@class的含义
- warning: (armv7) /Users/lijiajia/...AlipaySDK4Sunable to open object file: No such file or directory
- Object有哪些公用方法
- HyperNet: Towards Accurate Region Proposal Generation and Joint Object Detection
- NSObject中的常用方法
- Excessive AWR Growth From Partitioned Objects Such as SYS.WRH$_EVENT_HISTOGRAM Causing Sysaux to Grow
- JSONObject使用方法
- [Rational Rose 2007]解决启动报”解决无法启动此程序因为丢失suite objects.dll“的问题
- Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/Type