-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path对象和数组.html
More file actions
30 lines (27 loc) · 761 Bytes
/
Copy path对象和数组.html
File metadata and controls
30 lines (27 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>GETTING STARTED WITH BRACKETS</title>
<meta name="description" content="An interactive getting started guide for Brackets.">
</head>
<body>
<h1>对象和数组</h1>
<script>
var delivery = {
no : 1,
sendtime : "2014-11-25",
address : ["北京", "上海", "南京"],
way : "PJS",
cansend : function() {
return true;
}
};
// 数组定义的两种方式
var s = [1, "ctrip"];
var a = new Array(1, "ctrip");
</script>
</body>
</html>