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/cn.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