[問題] 動態網頁設計 指令碼問題

看板Web_Design作者 (摳)時間10年前 (2014/04/20 11:19), 編輯推噓4(402)
留言6則, 6人參與, 最新討論串1/1
如題,最近受委託一個動態指令碼檔,是她期中考的考題 指令碼如下面所示 但其實我沒有修過關於網頁指令碼的課程 所以想請版上大大們幫忙 幫我解釋一下"每段指令碼的意義"為何 拜託拜託各位 >< (如需要文字檔可站內信詢問我,再寄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" } ] } -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.218.49.22 ※ 文章網址: http://www.ptt.cc/bbs/Web_Design/M.1397963953.A.0C5.html

04/21 01:43, , 1F
期中考考題…何苦外包再外包
04/21 01:43, 1F

04/21 08:23, , 2F
話說…資料你都查好了啊
04/21 08:23, 2F

04/21 10:33, , 3F
這種考題還可以先放出來查資料跟問喔...囧
04/21 10:33, 3F

04/21 22:05, , 4F
對學生來講的確有難度呀, 給你題目並不一定代表寫得出來
04/21 22:05, 4F

04/22 00:06, , 5F
不會做還在那邊包工程..
04/22 00:06, 5F

04/22 00:37, , 6F
寫不出來就放著給他當阿
04/22 00:37, 6F
文章代碼(AID): #1JKpon35 (Web_Design)