js notes(1)

  • case 1
var book = {
	title:"The Hobbit",
	author:"J.R.R.Tolkien",
	published:1937
};
  • case 2
var player={
	name:"Max",
	health:50,
	place:"The Dungeon of Doom",
	items:"a rusty key, The sowrd of Destiny, a piece of cheese"
};
  • case 3
var post={
	id:1,
	title:"My Crazy Space Adventure",
	author:"Philae",
	created:"2015-06-21",
	body:"You will not believe where I just woke up!! Only on a comet..."
};
  • case 4
var event={
	title:"Appraisal Meeting",
	startDate:"2016-10-04 16:00:00",
	endDate:"2016-10-04" 17:00:00,
	location:"Martha’s office",
	importance:1,
	notes:'Don\'t forget the portfolio!'
};
  • case 5
var questionAndAnswer = {
	question:"What is the capital of France?",
	answer1:"Bordeaux",
	answer2:"F",
	answer3:"Paris",
	answer4:"Brussels",
	correctAnswer:"Paris",
	marksForQuestion:2
};
  • case 6
var location = {
	"city":"San Francisco",
	"state":"CA",
	"country":"US",
	"zip":"94101",
	"latitude":37.775,
	"longitude":-122.418,
	"elevation":47.000
};

<<:  解决line图文选单404问题

>>:  如何在 SQL Server AOAG 设定环境之下, 套用修补程序 (patching)?

Day29练习java-多执行序

昨天是用继承Thread来执行多执行序,今天介绍另外一种方法,实作Runnable介面一样可以执行多...

成为工具人应有的工具包-04 VaultPasswordView

VaultPasswordView 今日来认识 VaultPasswordView ! 他是一个在 ...

执行环境 Execution Context、宣告提升 Hoisting

早期的 JavaScript 变数只能用 var 宣告,後来 ES6 新增 let 、 const ...

javascript物件教学3

接下进到建构式,我们延续上一篇讲的那个游戏玩家设计程序,再继续延伸: ...

Day20:安全性和演算法-杂凑函数(hash function)

安全性与演算法 在电脑科学的领域里,每一刻都有数以万计的资料在进行传输,在传输的过程中,是真的安全吗...