{"id":1926,"date":"2023-03-25T14:26:38","date_gmt":"2023-03-25T06:26:38","guid":{"rendered":""},"modified":"2023-03-25T14:26:38","modified_gmt":"2023-03-25T06:26:38","slug":"ES6 \u4e8b\u4ef6","status":"publish","type":"post","link":"https:\/\/bianchenghao6.com\/1926.html","title":{"rendered":"ES6 \u4e8b\u4ef6"},"content":{"rendered":"
\n
\n<html> \n <head> \n <script type = \"text\/javascript\"<\/span>> \n function hello() { \n alert (\"Hello World\"<\/span>); \n } \n <\/script> \n <\/head> \n \n <body style=\"text-align:center;\"<\/span>> \n <p> Click the button<\/p> \n <input type = \"button\"<\/span> onclick = \"hello()\"<\/span> value = \"Click me \"<\/span> \/> \n <\/body> \n<\/html><\/pre>\n<\/code>\n <\/div>\n
\n \u5f53\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u6267\u884c\u4e0a\u8ff0\u4ee3\u7801\u65f6\uff0c\u4f60\u4f1a\u5f97\u5230\u5982\u4e0b\u8f93\u51fa\u3002\n <\/div>\n\n \u8f93\u51fa\n <\/div>\n
<\/p>\n
\n \u70b9\u51fb\u6309\u94ae\u540e\u4f1a\u6709\u63d0\u793a\uff0c\u5982\u4e0b\u56fe\n <\/div>\n
<\/p>\n
onsubmit \u4e8b\u4ef6\u7c7b\u578b<\/h2>\n\n \u5f53\u60a8\u9700\u8981\u63d0\u4ea4\u8868\u5355\u65f6\u53d1\u751f\u3002\u5f53\u60a8\u5355\u51fb\u63d0\u4ea4\u6309\u94ae\u65f6\uff0c'onsubmit' \u8c03\u7528\u76f8\u5e94\u7684 'return function()' \u5e76\u4ece function() \u83b7\u53d6\u54cd\u5e94\u5f3a>\u65e0\u8bba\u662f\u771f\u8fd8\u662f\u5047\u3002\u5982\u679c function() \u8fd4\u56de true\uff0c\u5219\u8868\u5355\u5c06\u88ab\u63d0\u4ea4\u3002\u5426\u5219\uff0c\u5b83\u4e0d\u4f1a\u63d0\u4ea4\u6570\u636e\u3002\n <\/div>\nonmouseout \u548c onmouseover<\/h2>\n\n \u8fd9\u4e9b\u4e8b\u4ef6\u5e2e\u52a9\u60a8\u521b\u5efa\u6587\u672c\u548c\u56fe\u50cf\u7684\u6548\u679c\u3002\u987e\u540d\u601d\u4e49\uff0conmouseover \u4e8b\u4ef6\u5728\u60a8\u5c06\u9f20\u6807\u60ac\u505c\u5728\u4efb\u4f55\u5143\u7d20\u4e0a\u65f6\u89e6\u53d1\u3002 onmouseout \u4e8b\u4ef6\u5728\u60a8\u5c06\u9f20\u6807\u4ece\u5143\u7d20\u4e2d\u79fb\u51fa\u65f6\u89e6\u53d1\u3002\n <\/div>\n\n \u8ba9\u6211\u4eec\u5c1d\u8bd5\u4f7f\u7528\u4ee5\u4e0b\u793a\u4f8b\u6765\u7406\u89e3\u5b83\u4eec\u3002\n <\/div>\n\u793a\u4f8b<\/h3>\n\n\n<html> \n<head> \n <script type=\"text\/javascript\"<\/span>> \n function mouseOver() { \n document.getElementById<\/span>(\"div1\"<\/span><\/span><\/span>).style.color \n = \"blue\"<\/span>; \n document.getElementById<\/span>(\"div2\"<\/span><\/span><\/span><\/span><\/span>).innerHTML \n = \"mouseOver triggered\"<\/span>; \n \n document.getElementById<\/span>(\"div2\").style.color \n = \"green\"<\/span>; \n } \n function mouseOut() { \n document.getElementById<\/span>(\"div1\").style.color \n = \"magenta\"<\/span>; \n \n document.getElementById<\/span>(\"div2\").innerHTML \n = \"mouseOut triggered\"<\/span>; \n \n document.getElementById<\/span>(\"div2\").style.color \n = \"red\"<\/span>; \n } \n <\/script> \n<\/head> \n<body style=\"text-align:center;\"<\/span>> \n \n <h1 id=\"div1\" onmouseover=\"mouseOver()\"<\/span>\n onmouseout=\"mouseOut()\"<\/span>> \n Bring your mouse inside it. \n <\/h1> \n \n <h3> \n Move your cursor on the above heading to see the result.\n <\/h3> \n \n <h2><p id=\"div2\"><\/p><\/h2> \n<\/body> \n \n<\/html><\/pre>\n<\/code>\n <\/div>\n
\n \u5f53\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u6267\u884c\u4e0a\u8ff0\u4ee3\u7801\u65f6\uff0c\u4f60\u4f1a\u5f97\u5230\u5982\u4e0b\u8f93\u51fa\u3002\n <\/div>\n\n \u8f93\u51fa\n <\/div>\n
<\/p>\n
\n \u5c06\u9f20\u6807\u79fb\u5230\u7b2c\u4e00\u4e2a\u6807\u9898\u4e0a\uff0c\u60a8\u5c06\u5f97\u5230:\n <\/div>\n
<\/p>\n
\n \u5c06\u9f20\u6807\u4ece\u7b2c\u4e00\u4e2a\u6807\u9898\u79fb\u51fa\uff0c\u60a8\u5c06\u5f97\u5230:\n <\/div>\n
<\/p>\n
HTML5 \u6807\u51c6\u4e8b\u4ef6<\/h2>\n\n \u5e38\u7528\u7684\u6709\u4e00\u4e9bHTML \u4e8b\u4ef6\u3002\n <\/div>\n\n\n\n\u5c5e\u6027<\/td>\n \u8bf4\u660e<\/td>\n<\/tr>\n \nonabort<\/td>\n \u5b83\u5728 abort \u4e8b\u4ef6\u4e0a\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \noffline<\/td>\n \u6587\u6863\u79bb\u7ebf\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonafterprint<\/td>\n \u5728\u6253\u5370\u6587\u6863\u540e\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonbeforeonload<\/td>\n \u5728\u52a0\u8f7d\u6587\u6863\u4e4b\u524d\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonbeforeprint<\/td>\n \u5728\u6253\u5370\u6587\u6863\u4e4b\u524d\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonblur<\/td>\n \u5f53\u7a97\u53e3\u5931\u53bb\u7126\u70b9\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonchange<\/td>\n \u5f53\u5143\u7d20\u6539\u53d8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonclick<\/td>\n \u9f20\u6807\u70b9\u51fb\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \noncontextmenu<\/td>\n \u5f53\u4e0a\u4e0b\u6587\u83dc\u5355\u88ab\u89e6\u53d1\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \noncanplay<\/td>\n \u5f53\u5a92\u4f53\u53ef\u4ee5\u5f00\u59cb\u64ad\u653e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \noncanplaythrough<\/td>\n \u5f53\u5a92\u4f53\u64ad\u653e\u5230\u6700\u540e\u6ca1\u6709\u4efb\u4f55\u7f13\u51b2\u6216\u505c\u6b62\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondbclick<\/td>\n \u53cc\u51fb\u9f20\u6807\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondrag<\/td>\n \u62d6\u52a8\u5143\u7d20\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondrop<\/td>\n \u5f53\u62d6\u52a8\u7684\u5143\u7d20\u88ab\u653e\u4e0b\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondragend<\/td>\n \u62d6\u52a8\u64cd\u4f5c\u7ed3\u675f\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondragenter<\/td>\n \u5f53\u5143\u7d20\u88ab\u62d6\u52a8\u5230\u653e\u7f6e\u76ee\u6807\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondragleave<\/td>\n \u5f53\u5143\u7d20\u79bb\u5f00\u653e\u7f6e\u76ee\u6807\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondragover<\/td>\n \u5f53\u5143\u7d20\u88ab\u62d6\u653e\u5230\u653e\u7f6e\u76ee\u6807\u4e0a\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondragstart<\/td>\n \u5b83\u5728\u62d6\u52a8\u64cd\u4f5c\u5f00\u59cb\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nondurationchange<\/td>\n \u5f53\u5a92\u4f53\u957f\u5ea6\u6539\u53d8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonended<\/td>\n \u5f53\u5a92\u4f53\u5230\u8fbe\u7ed3\u5c3e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nomemptied<\/td>\n \u5f53\u5a92\u4f53\u4e2d\u7684\u8d44\u6e90\u5143\u7d20\u7a81\u7136\u53d8\u7a7a\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonfocus<\/td>\n \u5f53\u7a97\u53e3\u83b7\u5f97\u7126\u70b9\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonerror<\/td>\n \u53d1\u751f\u9519\u8bef\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonformchange<\/td>\n \u5f53\u8868\u5355\u53d1\u751f\u53d8\u5316\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonforminput<\/td>\n \u5f53\u8868\u5355\u83b7\u5f97\u7528\u6237\u8f93\u5165\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonhaschange<\/td>\n \u5b83\u5728\u66f4\u6539\u6587\u6863\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \noninput<\/td>\n \u5f53\u5143\u7d20\u83b7\u5f97\u7528\u6237\u8f93\u5165\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \noninvalid<\/td>\n \u5b83\u5728\u65e0\u6548\u5143\u7d20\u4e0a\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonkeyup<\/td>\n \u91ca\u653e\u6309\u952e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonkeydown<\/td>\n \u5f53\u6309\u952e\u88ab\u6309\u4e0b\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonkeypress<\/td>\n \u5f53\u6309\u952e\u88ab\u91ca\u653e\u548c\u6309\u4e0b\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonload<\/td>\n \u5b83\u5728\u52a0\u8f7d\u6587\u6863\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonloadedmetadata<\/td>\n \u5f53\u5a92\u4f53\u6570\u636e\u548c\u5a92\u4f53\u5143\u7d20\u7684\u6301\u7eed\u65f6\u95f4\u88ab\u52a0\u8f7d\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonloadeddata<\/td>\n \u52a0\u8f7d\u5a92\u4f53\u6570\u636e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonmessage<\/td>\n \u5b83\u5728\u6d88\u606f\u89e6\u53d1\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonloadstart<\/td>\n \u5f53\u6d4f\u89c8\u5668\u5f00\u59cb\u52a0\u8f7d\u5a92\u4f53\u6570\u636e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonmousemove<\/td>\n \u5b83\u5728\u9f20\u6807\u6307\u9488\u79fb\u52a8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonmousedown<\/td>\n \u5b83\u5728\u6309\u4e0b\u9f20\u6807\u6309\u94ae\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonmouseover<\/td>\n \u5f53\u60a8\u5c06\u9f20\u6807\u6307\u9488\u79fb\u5230\u5143\u7d20\u4e0a\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonmouseout<\/td>\n \u5f53\u9f20\u6807\u6307\u9488\u79fb\u51fa\u5143\u7d20\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonmouseup<\/td>\n \u91ca\u653e\u9f20\u6807\u6309\u94ae\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonmousewheel<\/td>\n \u5f53\u4f60\u8f6c\u52a8\u9f20\u6807\u6eda\u8f6e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nononline<\/td>\n \u6587\u6863\u5728\u7ebf\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonoffline<\/td>\n \u6587\u6863\u79bb\u7ebf\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonpageshow<\/td>\n \u5f53\u7a97\u53e3\u53ef\u89c1\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonpagehide<\/td>\n \u5f53\u7a97\u53e3\u9690\u85cf\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonplay<\/td>\n \u5f53\u5a92\u4f53\u6570\u636e\u5f00\u59cb\u64ad\u653e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonplaying<\/td>\n \u64ad\u653e\u5a92\u4f53\u6570\u636e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonpause<\/td>\n \u5f53\u5a92\u4f53\u6570\u636e\u6682\u505c\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonprogress<\/td>\n \u5f53\u6d4f\u89c8\u5668\u83b7\u53d6\u5a92\u4f53\u6570\u636e\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonpopstate<\/td>\n \u5f53\u7a97\u53e3\u5386\u53f2\u6539\u53d8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonratechange<\/td>\n \u5f53\u5a92\u4f53\u6570\u636e\u7684\u64ad\u653e\u901f\u7387\u6539\u53d8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonreadystatechange<\/td>\n \u5f53\u5c31\u7eea\u72b6\u6001\u6539\u53d8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonredo<\/td>\n \u5f53\u6587\u6863\u6b63\u5728\u6267\u884c\u91cd\u505a\u64cd\u4f5c\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonresize<\/td>\n \u5f53\u7a97\u53e3\u8c03\u6574\u5927\u5c0f\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonscroll<\/td>\n \u5f53\u5143\u7d20\u7684\u6eda\u52a8\u6761\u6eda\u52a8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonseeking<\/td>\n \u5f53media\u5143\u7d20\u7684seek\u5c5e\u6027\u4e3atrue\u65f6\u89e6\u53d1\uff0c\u5e76\u4e14\u5df2\u7ecf\u5f00\u59cb\u641c\u7d22\u3002<\/td>\n<\/tr>\n \nonseeked<\/td>\n media \u5143\u7d20\u7684seek \u5c5e\u6027\u4e0d\u4e3atrue \u65f6\u89e6\u53d1\uff0c\u5e76\u4e14seek \u5df2\u7ecf\u7ed3\u675f\u3002<\/td>\n<\/tr>\n \nonselect<\/td>\n \u5f53\u5143\u7d20\u88ab\u9009\u4e2d\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonstalled<\/td>\n \u5728\u83b7\u53d6\u5a92\u4f53\u6570\u636e\u51fa\u9519\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonsubmit<\/td>\n \u63d0\u4ea4\u8868\u5355\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonstorage<\/td>\n \u5b83\u5728\u6587\u6863\u52a0\u8f7d\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonvolumechange<\/td>\n \u5f53\u5a92\u4f53\u5143\u7d20\u6539\u53d8\u5176\u97f3\u91cf\u6216\u97f3\u91cf\u9759\u97f3\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonwaiting<\/td>\n \u5f53\u5a92\u4f53\u5143\u7d20\u505c\u6b62\u64ad\u653e\u65f6\u89e6\u53d1\uff0c\u4f46\u9884\u8ba1\u4f1a\u7ee7\u7eed\u64ad\u653e\u3002<\/td>\n<\/tr>\n \nonunload<\/td>\n \u5f53\u7528\u6237\u79bb\u5f00\u6587\u6863\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonundo<\/td>\n \u5f53\u6587\u6863\u6267\u884c\u64a4\u9500\u64cd\u4f5c\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nontimeupdate<\/td>\n \u5f53\u5a92\u4f53\u5143\u7d20\u7684\u64ad\u653e\u4f4d\u7f6e\u6539\u53d8\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n \nonsuspend<\/td>\n \u5f53\u6d4f\u89c8\u5668\u6b63\u5728\u83b7\u53d6\u5a92\u4f53\u6570\u636e\u4f46\u5728\u83b7\u53d6\u5b8c\u6574\u5a92\u4f53\u6587\u4ef6\u4e4b\u524d\u505c\u6b62\u65f6\u89e6\u53d1\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/body>
\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"ES6 \u4e8b\u4ef6zh-cn","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[161],"tags":[],"class_list":["post-1926","post","type-post","status-publish","format-standard","hentry","category-es6jc"],"_links":{"self":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/1926"}],"collection":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/comments?post=1926"}],"version-history":[{"count":0,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/posts\/1926\/revisions"}],"wp:attachment":[{"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/media?parent=1926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/categories?post=1926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bianchenghao6.com\/wp-json\/wp\/v2\/tags?post=1926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}