[问题] 动态网页设计 指令码问题

楼主: a85222781 (呱)   2014-04-20 11:19:08
如题,最近受委托一个动态指令码档,是她期中考的考题
指令码如下面所示
但其实我没有修过关于网页指令码的课程
所以想请版上大大们帮忙
帮我解释一下"每段指令码的意义"为何
拜托拜托各位 ><
(如需要文字档可站内信询问我,再寄E-mail把档案寄给你)
以上,谢谢。
http://www.w3schools.com/html/html_forms.asp
HTML Forms - The Input Element
<form>
First name: <input type="text" name="firstname"><br>
Last name: <input type="text" name="lastname">
<textarea rows="4" cols="50">
At w3schools.com you will learn how to make a website.
We offer free tutorials in all web development tech.
</textarea>
Password: <input type="password" name="pwd">
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
Username: <input type="text" name="user">
<input type="submit" value="Submit">
</form>
http://www.w3schools.com/js/js_dom_examples.asp
Document Object
Write text to the output with document.write()
Write formatted text to the output with document.write()
Return the number of anchors in a document
Return the innerHTML of the first anchor in a document
Return the number of forms in a document
Return the name of the first form in a document
Return the number of images in a document
Return the id of the first image in a document
Return the number of links in a document
Return the id of the first link in a document
Return all name/value pairs of cookies in a document
Return the domain name of the server that loaded the document
Return the date and time the document was last modified
Return the URL of the document that loaded the current document
Return the title of a document
Return the full URL of a document
Open an output stream, and add some text
Open an output stream in a new window, and add some text
Difference between write() and writeln()
Alert innerHTML of an element with a specific ID
Alert the number of elements with a specific name
Alert the number of elements with a specific tagname
http://www.w3schools.com/svg/svg_inhtml.asp
SVG example
SVG Shapes
SVG has some predefined shape elements that can be used by developers:
Rectangle <rect>
Circle <circle>
Ellipse <ellipse>
Line <line>
Polyline <polyline>
Polygon <polygon>
Path <path>
http://en.wikipedia.org/wiki/JSON
Data types, syntax and example
Data types, syntax and example
JSON's basic types are:
Number — a signed decimal number that may contain a fractional part and
may use exponential E notation. JSON does not allow non-numbers like NaN, nor
does it make any distinction between integer and floating-point. (Even though
JavaScript uses a double-precision floating-point format for all its numeric
values, other languages implementing JSON may encode numbers differently)
String — a sequence of zero or more Unicode characters, though
characters outside the BMP must be represented as a surrogate pair. Strings
are delimited with double-quotation marks and support a backslash escaping
syntax.
Boolean — either of the values true or false
Array — an ordered list of zero or more values, each of which may be of
any type. Arrays use square bracket notation with elements being
comma-separated.
Object — an unordered associative array (name/value pairs). Objects are
delimited with curly braces and use commas to separate each pair, while
within each pair the colon ':' character separates the key or name from its
value. All keys must be strings and should be distinct from each other within
that object.
null — An empty value, using the word null
JSON generally ignores any whitespace around or between syntactic elements
(values and punctuation, but not within a string value). However JSON only
recognizes four specific whitespace characters: the space, horizontal tab,
line feed, and carriage return. JSON does not provide or allow any sort of
comment syntax.
Early versions of JSON (such as specified by RFC 4627) required that a valid
JSON "document" must consist of only an object or an array type—though they
could contain other types within them. This restriction was relaxed starting
with RFC 7158, so that a JSON document may consist entirely of any possible
JSON typed value.
The following example shows a possible JSON representation describing a
person.
{
"firstName": "John",
"lastName": "Smith",
"isAlive": true,
"age": 25,
"height_cm": 167.64,
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"state": "NY",
"postalCode": "10021-3100"
},
"phoneNumbers": [
{ "type": "home", "number": "212 555-1234" },
{ "type": "fax", "number": "646 555-4567" }
]
}
作者: beerson (啤酒僧)   2014-04-21 01:43:00
期中考考题…何苦外包再外包
作者: virve (std::vie)   2014-04-21 08:23:00
话说…资料你都查好了啊
作者: bndan (seed)   2014-04-21 10:33:00
这种考题还可以先放出来查资料跟问喔...囧
作者: fortinet (fortinet)   2014-04-21 22:05:00
对学生来讲的确有难度呀, 给你题目并不一定代表写得出来
作者: jenesis (ゼネシス)   2014-04-22 00:06:00
不会做还在那边包工程..
作者: f1234518456 (...........)   2014-04-22 00:37:00
写不出来就放著给他当阿

Links booklink

Contact Us: admin [ a t ] ucptt.com