iT邦幫忙

0

js notes(1)

js
  • 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
};

尚未有邦友留言

立即登入留言