Web_Design 板


LINE

如題,最近受委託一個動態指令碼檔,是她期中考的考題 指令碼如下面所示 但其實我沒有修過關於網頁指令碼的課程 所以想請版上大大們幫忙 幫我解釋一下"每段指令碼的意義"為何 拜託拜託各位 >< (如需要文字檔可站內信詢問我,再寄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://webptt.com/m.aspx?n=bbs/Web_Design/M.1397963953.A.0C5.html
1F:推 beerson:期中考考題…何苦外包再外包 04/21 01:43
2F:推 virve:話說…資料你都查好了啊 04/21 08:23
3F:→ bndan:這種考題還可以先放出來查資料跟問喔...囧 04/21 10:33
4F:推 fortinet:對學生來講的確有難度呀, 給你題目並不一定代表寫得出來 04/21 22:05
5F:→ jenesis:不會做還在那邊包工程.. 04/22 00:06
6F:推 f1234518456:寫不出來就放著給他當阿 04/22 00:37







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:iOS 或 站內搜尋

TOP