{"id":3043,"date":"2014-09-15T14:46:35","date_gmt":"2014-09-15T06:46:35","guid":{"rendered":"https:\/\/sdeno.com\/?p=3043"},"modified":"2014-09-15T14:46:35","modified_gmt":"2014-09-15T06:46:35","slug":"%e5%ae%9e%e7%94%a8%e7%9a%847%e4%b8%aajavascript%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=3043","title":{"rendered":"\u5b9e\u7528\u76847\u4e2aJavaScript\u6280\u5de7"},"content":{"rendered":"<p style=\"color: #333333;\">\u6211\u5199JavaScript\u4ee3\u7801\u5df2\u7ecf\u5f88\u4e45\u4e86\uff0c\u90fd\u8bb0\u4e0d\u8d77\u662f\u4ec0\u4e48\u5e74\u4ee3\u5f00\u59cb\u7684\u4e86\u3002\u5bf9\u4e8eJavaScript\u8fd9\u79cd\u8bed\u8a00\u8fd1\u51e0\u5e74\u6240\u53d6\u5f97\u7684\u6210\u5c31\uff0c\u6211\u611f\u5230\u975e\u5e38\u7684\u5174\u594b\uff1b\u6211\u5f88\u5e78\u8fd0\u4e5f\u662f\u8fd9\u4e9b\u6210\u5c31\u7684\u83b7\u76ca\u8005\u3002\u6211\u5199\u4e86\u4e0d\u5c11\u7684\u6587\u7ae0\uff0c\u7ae0\u8282\uff0c\u8fd8\u6709\u4e00\u672c\u4e13\u95e8\u8ba8\u8bba\u5b83\u7684\u4e66\uff0c\u7136\u800c\uff0c\u6211\u73b0\u5728\u4f9d\u7136\u80fd\u53d1\u73b0\u4e00\u4e9b\u5173\u4e8e\u8fd9\u79cd\u8bed\u8a00\u7684\u65b0\u77e5\u8bc6\u3002\u4e0b\u9762\u7684\u63cf\u8ff0\u7684\u5c31\u662f\u8fc7\u53bb\u8ba9\u6211\u4e0d\u7531\u5f97\u53d1\u51fa\u201c\u554a\uff01\u201d\u7684\u611f\u53f9\u7684\u7f16\u7a0b\u6280\u5de7\uff0c\u8fd9\u4e9b\u6280\u5de7\u4f60\u5e94\u8be5\u73b0\u5728\u5c31\u8bd5\u8bd5\uff0c\u800c\u4e0d\u662f\u7b49\u7740\u672a\u6765\u7684\u67d0\u4e2a\u65f6\u5019\u5076\u7136\u7684\u53d1\u73b0\u5b83\u4eec\u3002<\/p>\n<h3 style=\"color: #333333;\">\u7b80\u6d01\u5199\u6cd5<\/h3>\n<p style=\"color: #333333;\">JavaScript\u91cc\u6211\u6700\u559c\u6b22\u7684\u4e00\u79cd\u4e1c\u897f\u5c31\u662f\u751f\u6210\u5bf9\u8c61\u548c\u6570\u7ec4\u7684\u7b80\u5199\u65b9\u6cd5\u3002\u5728\u8fc7\u53bb\uff0c\u5982\u679c\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a\u5bf9\u8c61\uff0c\u4f60\u9700\u8981\u8fd9\u6837\uff1a<\/p>\n<div id=\"crayon-54168a5ac045f581638055\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac045f581638055-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac045f581638055-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac045f581638055-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac045f581638055-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac045f581638055-5\">5<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac045f581638055-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-r\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">new<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">Object<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac045f581638055-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">colour<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;red&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac045f581638055-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">wheels<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac045f581638055-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">hubcaps<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;spinning&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac045f581638055-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">age<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u4e0b\u9762\u7684\u5199\u6cd5\u80fd\u591f\u8fbe\u5230\u540c\u6837\u7684\u6548\u679c\uff1a<\/p>\n<div id=\"crayon-54168a5ac0470603937714\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0470603937714-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0470603937714-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0470603937714-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0470603937714-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0470603937714-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0470603937714-6\">6<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac0470603937714-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0470603937714-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">colour<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;red&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0470603937714-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">wheels<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0470603937714-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">hubcaps<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;spinning&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0470603937714-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">age<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><\/div>\n<div id=\"crayon-54168a5ac0470603937714-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">6<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u7b80\u5355\u591a\u4e86\uff0c\u4f60\u4e0d\u9700\u8981\u53cd\u590d\u4f7f\u7528\u8fd9\u4e2a\u5bf9\u8c61\u7684\u540d\u79f0\u3002\u8fd9\u6837 car \u5c31\u5b9a\u4e49\u597d\u4e86\uff0c\u4e5f\u8bb8\u4f60\u4f1a\u9047\u5230 invalidUserInSession \u7684\u95ee\u9898\uff0c\u8fd9\u53ea\u6709\u4f60\u5728\u4f7f\u7528IE\u65f6\u4f1a\u78b0\u5230\uff0c\u53ea\u8981\u8bb0\u4f4f\u4e00\u70b9\uff0c\u4e0d\u8981\u53f3\u5927\u62ec\u53f7\u524d\u9762\u5199\u9017\u53f7\uff0c\u4f60\u5c31\u4e0d\u4f1a\u6709\u9ebb\u70e6\u3002<\/p>\n<p style=\"color: #333333;\">\u53e6\u5916\u4e00\u4e2a\u5341\u5206\u65b9\u4fbf\u7684\u7b80\u5199\u662f\u9488\u5bf9\u6570\u7ec4\u7684\u3002\u4f20\u7edf\u7684\u5b9a\u4e49\u6570\u7ec4\u7684\u65b9\u6cd5\u662f\u8fd9\u6837\uff1a<\/p>\n<div id=\"crayon-54168a5ac0477947072679\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0477947072679-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0477947072679-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0477947072679-3\">3<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac0477947072679-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">moviesThatNeedBetterWriters<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-r\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">new<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">Array<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><\/div>\n<div id=\"crayon-54168a5ac0477947072679-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Transformers&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Transformers2&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Avatar&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;IndianaJones 4&#8217;<\/span><\/div>\n<div id=\"crayon-54168a5ac0477947072679-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u7b80\u5199\u7248\u7684\u662f\u8fd9\u6837\uff1a<\/p>\n<div id=\"crayon-54168a5ac047e540236950\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac047e540236950-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac047e540236950-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac047e540236950-3\">3<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac047e540236950-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">moviesThatNeedBetterWriters<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><\/div>\n<div id=\"crayon-54168a5ac047e540236950-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Transformers&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Transformers2&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Avatar&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;IndianaJones 4&#8217;<\/span><\/div>\n<div id=\"crayon-54168a5ac047e540236950-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u5bf9\u4e8e\u6570\u7ec4\uff0c\u8fd9\u91cc\u6709\u4e2a\u95ee\u9898\uff0c\u5176\u5b9e\u6ca1\u6709\u4ec0\u4e48\u56fe\u7ec4\u529f\u80fd\u3002\u4f46\u4f60\u4f1a\u7ecf\u5e38\u53d1\u73b0\u6709\u4eba\u8fd9\u6837\u5b9a\u4e49\u4e0a\u9762\u7684 car \uff0c\u5c31\u50cf\u8fd9\u6837<\/p>\n<div id=\"crayon-54168a5ac0485756576721\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0485756576721-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0485756576721-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0485756576721-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0485756576721-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0485756576721-5\">5<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac0485756576721-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-r\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">new<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">Array<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0485756576721-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;colour&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;red&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0485756576721-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;wheels&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0485756576721-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;hubcaps&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;spinning&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0485756576721-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">car<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;age&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u6570\u7ec4\u4e0d\u662f\u4e07\u80fd\u7684\uff1b\u8fd9\u6837\u5199\u4e0d\u5bf9\uff0c\u4f1a\u8ba9\u4eba\u56f0\u60d1\u3002\u56fe\u7ec4\u5b9e\u9645\u4e0a\u662f\u5bf9\u8c61\u7684\u529f\u80fd\uff0c\u4eba\u4eec\u6df7\u6dc6\u4e86\u8fd9\u4e24\u4e2a\u6982\u5ff5\u3002<\/p>\n<p style=\"color: #333333;\">\u53e6\u5916\u4e00\u4e2a\u975e\u5e38\u9177\u7684\u7b80\u5199\u65b9\u6cd5\u662f\u4f7f\u7528\u4e0e\u4e09\u5143\u6761\u4ef6\u7b26\u53f7\u3002\u4f60\u4e0d\u5fc5\u5199\u6210\u4e0b\u9762\u7684\u6837\u5b50\u2026<\/p>\n<div id=\"crayon-54168a5ac048c960210202\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac048c960210202-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac048c960210202-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac048c960210202-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac048c960210202-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac048c960210202-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac048c960210202-6\">6<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac048c960210202-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">direction<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac048c960210202-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">if<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">x<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&amp;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">lt<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">200<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac048c960210202-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">direction<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac048c960210202-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">else<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac048c960210202-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">direction<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&#8211;<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac048c960210202-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">6<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\n<p style=\"color: #333333;\">\u2026<br \/>\n\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e09\u5143\u6761\u4ef6\u7b26\u53f7\u7b80\u5316\u5b83\uff1a<\/p>\n<div id=\"crayon-54168a5ac0492301443206\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0492301443206-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac0492301443206-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">direction<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">x<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">200<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">?<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&#8211;<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u5f53\u6761\u4ef6\u4e3atrue \u65f6\u53d6\u95ee\u53f7\u540e\u9762\u7684\u503c\uff0c\u5426\u5219\u53d6\u5192\u53f7\u540e\u9762\u7684\u503c\u3002<\/p>\n<p style=\"color: #333333;\"><strong>\u7528 JSON \u5f62\u5f0f\u5b58\u50a8\u6570\u636e<\/strong><\/p>\n<p style=\"color: #333333;\">\u5728\u6211\u53d1\u73b0JSON\u4e4b\u524d\uff0c\u6211\u4f7f\u7528\u5404\u79cd\u75af\u72c2\u7684\u65b9\u6cd5\u628a\u6570\u636e\u5b58\u8d2e\u5728JavaScript\u56fa\u6709\u7684\u6570\u636e\u7c7b\u578b\u91cc\u9762\uff0c\u4f8b\u5982\uff1a\u6570\u7ec4\uff0c\u5b57\u7b26\u4e32\uff0c\u4e2d\u95f4\u5939\u6742\u7740\u5bb9\u6613\u8fdb\u884c\u62c6\u5206\u7684\u6807\u5fd7\u7b26\u53f7\u4ee5\u53ca\u5176\u5b83\u7684\u4ee4\u4eba\u8ba8\u538c\u7684\u4e1c\u897f\u3002Douglas Crockford \u53d1\u660e\u4e86JSON \u4e4b\u540e\uff0c\u4e00\u5207\u5168\u53d8\u4e86\u3002\u4f7f\u7528JSON\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528JavaScript\u81ea\u6709\u529f\u80fd\u628a\u6570\u636e\u5b58\u8d2e\u6210\u590d\u6742\u7684\u683c\u5f0f\uff0c\u800c\u4e14\u4e0d\u9700\u8981\u518d\u505a\u5176\u5b83\u7684\u989d\u5916\u8f6c\u6362\uff0c\u76f4\u63a5\u53ef\u4ee5\u8bbf\u95ee\u4f7f\u7528\u3002JSON \u662f \u201cJavaScript Object Notation\u201d \u7684\u7f29\u5199\uff0c\u5b83\u7528\u5230\u4e86\u4e0a\u9762\u63d0\u5230\u7684\u4e24\u79cd\u7b80\u5199\u65b9\u6cd5\u3002\u4e8e\u662f\uff0c\u5982\u679c\u4f60\u60f3\u63cf\u8ff0\u4e00\u4e2a\u4e50\u961f\uff0c\u4f60\u53ef\u80fd\u4f1a\u50cf\u8fd9\u6837\u5199\uff1a<\/p>\n<div id=\"crayon-54168a5ac0499531529957\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-11\">11<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-12\">12<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-13\">13<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-14\">14<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-15\">15<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-16\">16<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-17\">17<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-18\">18<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-19\">19<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-20\">20<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0499531529957-21\">21<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0499531529957-22\">22<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac0499531529957-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">band<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;name&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;The Red Hot Chili Peppers&#8221;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;members&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;name&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;Anthony Kiedis&#8221;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;role&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;lead vocals&#8221;<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;name&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;Michael &#8216;Flea&#8217; Balzary&#8221;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;role&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;bass guitar, trumpet, backing vocals&#8221;<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-12\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">12<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-13\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">13<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;name&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;Chad Smith&#8221;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-14\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">14<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;role&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;drums,percussion&#8221;<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-15\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">15<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-16\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">16<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-17\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">17<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;name&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;John Frusciante&#8221;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-18\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">18<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;role&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;Lead Guitar&#8221;<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-19\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">19<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-20\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">20<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-21\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">21<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;year&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;2009&#8221;<\/span><\/div>\n<div id=\"crayon-54168a5ac0499531529957-22\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">22<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u4f60\u53ef\u4ee5\u5728JavaScript\u91cc\u76f4\u63a5\u4f7f\u7528JSON\uff0c\u53ef\u4ee5\u628a\u5b83\u5c01\u88c5\u5728\u51fd\u6570\u91cc\uff0c\u751a\u81f3\u4f5c\u4e3a\u4e00\u4e2aAPI\u7684\u8fd4\u56de\u503c\u5f62\u5f0f\u3002\u6211\u4eec\u628a\u8fd9\u79f0\u4f5c JSON-P \uff0c\u5f88\u591a\u7684API\u90fd\u4f7f\u7528\u8fd9\u79cd\u5f62\u5f0f\u3002<br \/>\n\u4f60\u53ef\u4ee5\u8c03\u7528\u4e00\u4e2a\u6570\u636e\u63d0\u4f9b\u6e90\uff0c\u5728script\u4ee3\u7801\u91cc\u76f4\u63a5\u8fd4\u56de JSON-P \u6570\u636e\uff1a<\/p>\n<div id=\"crayon-54168a5ac04a0014601214\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-11\">11<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-12\">12<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-13\">13<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-14\">14<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-15\">15<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-16\">16<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-17\">17<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-18\">18<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-19\">19<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a0014601214-20\">20<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a0014601214-21\">21<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04a0014601214-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">div <\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">id<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;delicious&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">div<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-ta\" style=\"font-weight: inherit !important; color: #aaaaaa !important;\">&lt;script <\/span><span class=\"crayon-e \" style=\"font-weight: inherit !important; color: #ad8258 !important;\">type<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;text\/javascript&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ &lt;![CDATA[<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">delicious<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">o<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-e \" style=\"font-weight: inherit !important; color: #ad8258 !important;\">out<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&lt;ul&gt;&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">for<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">o<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">length<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">++<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">out<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&lt;li&gt;&lt;a href=&#8221;&#8216;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">o<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">u<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;&#8221;&gt;&#8217;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">o<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">d<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;&lt;\/a&gt;&lt;\/li&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-12\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-13\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-14\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">out<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;&lt;\/ul&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-15\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-16\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-17\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">document<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getElementById<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;delicious&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">innerHTML<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">out<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-18\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-19\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-20\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ ]]&gt;&lt;\/script&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a0014601214-21\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">12<\/span><span class=\"crayon-ta\" style=\"font-weight: inherit !important; color: #aaaaaa !important;\">&lt;script <\/span><span class=\"crayon-e \" style=\"font-weight: inherit !important; color: #ad8258 !important;\">type<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;text\/javascript&#8221;<\/span><span class=\"crayon-e \" style=\"font-weight: inherit !important; color: #ad8258 !important;\">src<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;http:\/\/feeds.delicious.com\/v2\/json\/codepo8\/javascript?count=15&amp;amp;callback=delicious&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-ta\" style=\"font-weight: inherit !important; color: #aaaaaa !important;\">&lt;\/script&gt;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u8fd9\u662f\u8c03\u7528 Delicious \u7f51\u7ad9\u63d0\u4f9b\u7684 Web service \u529f\u80fd\uff0c\u83b7\u5f97JSON\u683c\u5f0f\u7684\u6700\u8fd1\u7684\u65e0\u5e8f\u4e66\u7b7e\u5217\u8868\u3002<br \/>\n<span id=\"more-5436\"><\/span><br \/>\n\u57fa\u672c\u4e0a\uff0cJSON\u662f\u6700\u8f7b\u4fbf\u7684\u63cf\u8ff0\u590d\u6742\u6570\u636e\u7ed3\u6784\u7684\u65b9\u6cd5\uff0c\u800c\u4e14\u5b83\u80fd\u5728\u6d4f\u89c8\u5668\u91cc\u8fd0\u884c\u3002\u4f60\u751a\u81f3\u53ef\u4ee5\u5728PHP\u91cc\u7528 json_decode() \u51fd\u6570\u6765\u8fd0\u884c\u5b83\u3002JavaScript\u7684\u81ea\u5e26\u51fd\u6570(Math, Array \u548c String)\u8ba9\u6211\u611f\u5230\u60ca\u5947\u7684\u4e00\u4e2a\u4e8b\u60c5\u662f\uff0c\u5f53\u6211\u7814\u7a76\u4e86JavaScript\u91cc\u7684math\u548cString\u51fd\u6570\u540e\uff0c\u53d1\u73b0\u5b83\u4eec\u80fd\u6781\u5927\u7684\u7b80\u5316\u6211\u7684\u7f16\u7a0b\u52b3\u52a8\u3002\u4f7f\u7528\u5b83\u4eec\uff0c\u4f60\u53ef\u4ee5\u7701\u53bb\u590d\u6742\u7684\u5faa\u73af\u5904\u7406\u548c\u6761\u4ef6\u5224\u65ad\u3002\u4f8b\u5982\uff0c\u5f53\u6211\u9700\u8981\u5b9e\u73b0\u4e00\u4e2a\u529f\u80fd\uff0c\u627e\u51fa\u6570\u5b57\u6570\u7ec4\u91cc\u6700\u5927\u7684\u4e00\u4e2a\u6570\u65f6\uff0c\u6211\u8fc7\u53bb\u662f\u8fd9\u6837\u5199\u51fa\u8fd9\u4e2a\u5faa\u73af\u7684\uff0c\u5c31\u50cf\u4e0b\u9762\uff1a<\/p>\n<div id=\"crayon-54168a5ac04a8601138536\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a8601138536-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a8601138536-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a8601138536-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a8601138536-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a8601138536-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04a8601138536-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04a8601138536-7\">7<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04a8601138536-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">numbers<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">342<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">23<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">22<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">124<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a8601138536-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">max<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a8601138536-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">for<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">numbers<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">length<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">++<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;&#8221;<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">if<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">numbers<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">max<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04a8601138536-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">max<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">numbers<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04a8601138536-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">6<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04a8601138536-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">7<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04a8601138536-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">8<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">alert<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">max<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u6211\u4eec\u4e0d\u7528\u5faa\u73af\u4e5f\u80fd\u5b9e\u73b0\uff1a<\/p>\n<div id=\"crayon-54168a5ac04af721578787\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04af721578787-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04af721578787-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04af721578787-3\">3<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04af721578787-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">numbers<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">342<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">23<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">22<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">124<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04af721578787-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">numbers<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">sort<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">b<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">return<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">b<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&#8211;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04af721578787-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">alert<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">numbers<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f60\u4e0d\u80fd\u5bf9\u4e00\u4e2a\u6570\u5b57\u5b57\u7b26\u6570\u7ec4\u8fdb\u884c sort() \uff0c\u56e0\u4e3a\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5b83\u53ea\u4f1a\u6309\u7167\u5b57\u6bcd\u987a\u5e8f\u8fdb\u884c\u6392\u5e8f\u3002\u5982\u679c\u4f60\u60f3\u77e5\u9053\u66f4\u591a\u7684\u7528\u6cd5\uff0c\u53ef\u4ee5\u9605\u8bfb \u8fd9\u7bc7\u4e0d\u9519\u7684\u5173\u4e8e sort() \u7684\u6587\u7ae0\u3002<\/p>\n<p style=\"color: #333333;\">\u518d\u6709\u4e00\u4e2a\u6709\u610f\u601d\u7684\u51fd\u6570\u5c31\u662f Math.max()\u3002\u8fd9\u4e2a\u51fd\u6570\u8fd4\u56de\u53c2\u6570\u91cc\u7684\u6570\u5b57\u91cc\u6700\u5927\u7684\u4e00\u4e2a\u6570\u5b57\uff1a<\/p>\n<div id=\"crayon-54168a5ac04b6667959388\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04b6667959388-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04b6667959388-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">Math<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">max<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">12<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">123<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">433<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ returns 433<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u56e0\u4e3a\u8fd9\u4e2a\u51fd\u6570\u80fd\u591f\u6821\u9a8c\u6570\u5b57\uff0c\u5e76\u8fd4\u56de\u5176\u4e2d\u6700\u5927\u7684\u4e00\u4e2a\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u7528\u5b83\u6765\u6d4b\u8bd5\u6d4f\u89c8\u5668\u5bf9\u67d0\u4e2a\u7279\u6027\u7684\u652f\u6301\u60c5\u51b5\uff1a<\/p>\n<div id=\"crayon-54168a5ac04bd836348150\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04bd836348150-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04bd836348150-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04bd836348150-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04bd836348150-4\">4<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04bd836348150-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">scrollTop<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">Math<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">max<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><\/div>\n<div id=\"crayon-54168a5ac04bd836348150-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">doc<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">documentElement<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">scrollTop<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac04bd836348150-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">doc<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">body<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">scrollTop<\/span><\/div>\n<div id=\"crayon-54168a5ac04bd836348150-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u8fd9\u4e2a\u662f\u7528\u6765\u89e3\u51b3IE\u95ee\u9898\u7684\u3002\u4f60\u53ef\u4ee5\u83b7\u5f97\u5f53\u524d\u9875\u9762\u7684 scrollTop \u503c\uff0c\u4f46\u662f\u6839\u636e\u9875\u9762\u4e0a DOCTYPE\u7684\u4e0d\u540c\uff0c\u4e0a\u9762\u8fd9\u4e24\u4e2a\u5c5e\u6027\u4e2d\u53ea\u6709\u4e00\u4e2a\u4f1a\u5b58\u653e\u8fd9\u4e2a\u503c\uff0c\u800c\u53e6\u5916\u4e00\u4e2a\u5c5e\u6027\u4f1a\u662f undefined\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 Math.max() \u5f97\u5230\u8fd9\u4e2a\u6570\u3002\u9605\u8bfb\u8fd9\u7bc7\u6587\u7ae0\u4f60\u4f1a\u5f97\u5230\u66f4\u591a\u7684\u5173\u4e8e\u4f7f\u7528\u6570\u5b66\u51fd\u6570\u6765\u7b80\u5316JavaScript\u7684\u77e5\u8bc6\u3002<\/p>\n<p style=\"color: #333333;\">\u53e6\u5916\u6709\u4e00\u5bf9\u975e\u5e38\u6709\u7528\u7684\u64cd\u4f5c\u5b57\u7b26\u4e32\u7684\u51fd\u6570\u662f split() \u548c join()\u3002\u6211\u60f3\u6700\u6709\u4ee3\u8868\u6027\u7684\u4f8b\u5b50\u5e94\u8be5\u662f\uff0c\u5199\u4e00\u4e2a\u529f\u80fd\uff0c\u7528\u6765\u7ed9\u9875\u9762\u5143\u7d20\u9644\u52a0CSS\u6837\u5f0f\u3002<\/p>\n<p style=\"color: #333333;\">\u662f\u8fd9\u6837\u7684\uff0c\u5f53\u4f60\u7ed9\u9875\u9762\u5143\u7d20\u9644\u52a0\u4e00\u4e2aCSS class\u65f6\uff0c\u8981\u4e48\u5b83\u662f\u8fd9\u4e2a\u5143\u7d20\u7684\u7b2c\u4e00\u4e2aCSS class\uff0c\u6216\u8005\u662f\u5b83\u5df2\u7ecf\u6709\u4e86\u4e00\u4e9bclass, \u9700\u8981\u5728\u5df2\u6709\u7684class\u540e\u52a0\u4e0a\u4e00\u4e2a\u7a7a\u683c\uff0c\u7136\u540e\u8ffd\u52a0\u4e0a\u8fd9\u4e2aclass\u3002\u800c\u5f53\u4f60\u8981\u53bb\u6389\u8fd9\u4e2aclass\u65f6\uff0c\u4f60\u4e5f\u9700\u8981\u53bb\u6389\u8fd9\u4e2aclass\u524d\u9762\u7684\u7a7a\u683c(\u8fd9\u4e2a\u5728\u8fc7\u53bb\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3a\u6709\u4e9b\u8001\u7684\u6d4f\u89c8\u5668\u4e0d\u8ba4\u8bc6\u540e\u9762\u8ddf\u7740\u7a7a\u683c\u7684class)\u3002<\/p>\n<p style=\"color: #333333;\">\u4e8e\u662f\uff0c\u539f\u59cb\u7684\u5199\u6cd5\u4f1a\u662f\u8fd9\u6837\uff1a<\/p>\n<div id=\"crayon-54168a5ac04c4020384356\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04c4020384356-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04c4020384356-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04c4020384356-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04c4020384356-4\">4<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04c4020384356-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">addclass<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">elm<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">newclass<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04c4020384356-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">c<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">elm<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">className<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04c4020384356-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">elm<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">className<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">c<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">===<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8221;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">?<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">newclass<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">c<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216; &#8216;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">newclass<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04c4020384356-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u4f60\u53ef\u4ee5\u4f7f\u7528 split() \u548c join() \u51fd\u6570\u81ea\u52a8\u5b8c\u6210\u8fd9\u4e2a\u4efb\u52a1\uff1a<\/p>\n<div id=\"crayon-54168a5ac04cb564961751\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04cb564961751-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04cb564961751-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04cb564961751-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04cb564961751-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04cb564961751-5\">5<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04cb564961751-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">addclass<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">elm<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">newclass<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04cb564961751-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">classes<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">elm<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">className<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">split<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216; &#8216;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04cb564961751-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">classes<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">push<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">newclass<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04cb564961751-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">elm<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">className<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">classes<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">join<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216; &#8216;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04cb564961751-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u8fd9\u4f1a\u786e\u4fdd\u6240\u6709\u7684class\u90fd\u88ab\u7a7a\u683c\u5206\u9694\uff0c\u800c\u4e14\u4f60\u8981\u8ffd\u52a0\u7684class\u6b63\u597d\u653e\u5728\u6700\u540e\u3002<\/p>\n<p style=\"color: #333333;\"><strong>\u4e8b\u4ef6\u59d4\u6d3e<\/strong><\/p>\n<p style=\"color: #333333;\">Web\u5e94\u7528\u90fd\u662f\u7531\u4e8b\u4ef6\u9a71\u52a8\u8fd0\u8f6c\u7684\u3002\u6211\u559c\u6b22\u4e8b\u4ef6\u5904\u7406\uff0c\u5c24\u5176\u559c\u6b22\u81ea\u5df1\u5b9a\u4e49\u4e8b\u4ef6\u3002\u5b83\u80fd\u4f7f\u4f60\u7684\u4ea7\u54c1\u53ef\u6269\u5c55\uff0c\u800c\u4e0d\u7528\u6539\u52a8\u6838\u5fc3\u4ee3\u7801\u3002\u6709\u4e00\u4e2a\u5f88\u5927\u7684\u95ee\u9898\uff08\u4e5f\u53ef\u4ee5\u8bf4\u662f\u529f\u80fd\u5f3a\u5927\u7684\u8868\u73b0\uff09\uff0c\u662f\u5173\u4e8e\u9875\u9762\u4e0a\u4e8b\u4ef6\u7684\u79fb\u9664\u95ee\u9898\u3002\u4f60\u53ef\u4ee5\u5bf9\u67d0\u4e2a\u5143\u7d20\u5b89\u88c5\u4e00\u4e2a\u4e8b\u4ef6\u76d1\u542c\u5668\uff0c\u4e8b\u4ef6\u76d1\u542c\u5668\u5c31\u5f00\u59cb\u8fd0\u8f6c\u5de5\u4f5c\u3002\u4f46\u9875\u9762\u4e0a\u6ca1\u6709\u4efb\u4f55\u6307\u793a\u8bf4\u660e\u8fd9\u6709\u4e2a\u76d1\u542c\u5668\u3002\u56e0\u4e3a\u8fd9\u79cd\u4e0d\u53ef\u8868\u73b0\u7684\u95ee\u9898 (\u8fd9\u5c24\u5176\u8ba9\u4e00\u4e9b\u65b0\u624b\u5934\u75bc) \uff0c\u4ee5\u53ca\u50cfIE6\u8fd9\u6837\u7684\u201d\u6d4f\u89c8\u5668\u201c\u5728\u592a\u591a\u7684\u4f7f\u7528\u4e8b\u4ef6\u76d1\u542c\u65f6\u4f1a\u51fa\u73b0\u5404\u79cd\u7684\u5185\u5b58\u95ee\u9898\uff0c\u4f60\u4e0d\u5f97\u4e0d\u627f\u8ba4\u5c3d\u91cf\u5c11\u4f7f\u7528\u4e8b\u4ef6\u7f16\u7a0b\u662f\u4e2a\u660e\u667a\u7684\u505a\u6cd5\u3002<\/p>\n<p style=\"color: #333333;\">\u4e8e\u662f \u4e8b\u4ef6\u59d4\u6258 \u5c31\u51fa\u73b0\u4e86\u3002<\/p>\n<p style=\"color: #333333;\">\u5f53\u9875\u9762\u4e0a\u67d0\u4e2a\u5143\u7d20\u4e0a\u7684\u4e8b\u4ef6\u89e6\u53d1\u65f6\uff0c\u800c\u5728 DOM \u7ee7\u627f\u5173\u7cfb\u4e0a\uff0c\u8fd9\u4e2a\u5143\u7d20\u7684\u6240\u6709\u5b50\u5143\u7d20\u4e5f\u80fd\u63a5\u6536\u5230\u8fd9\u4e2a\u4e8b\u4ef6\uff0c\u8fd9\u65f6\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5728\u7236\u5143\u7d20\u4e0a\u7684\u4e8b\u4ef6\u5904\u7406\u5668\u6765\u5904\u7406\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u4e00\u5806\u7684\u5404\u4e2a\u5b50\u5143\u7d20\u4e0a\u7684\u4e8b\u4ef6\u76d1\u542c\u5668\u6765\u5904\u7406\u3002\u7a76\u7adf\u662f\u4ec0\u4e48\u610f\u601d\uff1f\u8fd9\u6837\u8bf4\u5427\uff0c\u9875\u9762\u4e0a\u6709\u5f88\u591a\u8d85\u94fe\u63a5\uff0c\u4f60\u4e0d\u60f3\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e9b\u94fe\u63a5\uff0c\u60f3\u901a\u8fc7\u4e00\u4e2a\u51fd\u6570\u6765\u8c03\u7528\u8fd9\u4e2a\u94fe\u63a5\uff0cHTML\u4ee3\u7801\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<div id=\"crayon-54168a5ac04d2842692993\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04d2842692993-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04d2842692993-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04d2842692993-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04d2842692993-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04d2842692993-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04d2842692993-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04d2842692993-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04d2842692993-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04d2842692993-9\">9<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04d2842692993-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">h2<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">Great <\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">Web <\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">resources<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">h2<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">ul <\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">id<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;resources&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">href<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;http:\/\/opera.com\/wsc&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">Opera <\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">Web <\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">Standards <\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">Curriculum<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">href<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;http:\/\/sitepoint.com&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">Sitepoint<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">href<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;http:\/\/alistapart.com&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">A<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">List <\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">Apart<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">6<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">href<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;http:\/\/yuiblog.com&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">YUI <\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">Blog<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">7<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">href<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;http:\/\/blameitonthevoices.com&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">Blame <\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">it <\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">on <\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">the <\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">voices<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">8<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">href<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8220;http:\/\/oddlyspecific.com&#8221;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">Oddly <\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">specific<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">a<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">li<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<div id=\"crayon-54168a5ac04d2842692993-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">9<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\/<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">ul<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&gt;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u5e38\u89c1\u7684\u505a\u6cd5\u662f\u901a\u8fc7\u5faa\u73af\u8fd9\u4e9b\u94fe\u63a5\uff0c\u5c06\u6bcf\u4e2a\u94fe\u63a5\u4e0a\u9644\u52a0\u4e00\u4e2a\u4e8b\u4ef6\u5904\u7406\u5668\uff1a<\/p>\n<div id=\"crayon-54168a5ac04da566690838\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04da566690838-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04da566690838-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04da566690838-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04da566690838-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04da566690838-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-11\">11<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04da566690838-12\">12<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-13\">13<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04da566690838-14\">14<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04da566690838-15\">15<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04da566690838-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ \u5178\u578b\u7684\u4e8b\u4ef6\u5904\u7406\u4f8b\u5b50<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">resources<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">document<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getElementById<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;resources&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">links<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">resources<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getElementsByTagName<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;a&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">all<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">links<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">length<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">for<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">&lt;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">all<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">++<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ Attach a listener to each link<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">links<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">[<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">i<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">]<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">addEventListener<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;click&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">handler<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">false<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">handler<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">e<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">x<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">e<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">target<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ Get the link that was clicked<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-12\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">12<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">alert<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">x<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-13\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">13<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">e<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">preventDefault<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-14\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">14<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04da566690838-15\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">15<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u6211\u4eec\u7528\u4e00\u4e2a\u4e8b\u4ef6\u5904\u7406\u5668\u4e5f\u80fd\u5b8c\u6210\u8fd9\u9879\u4efb\u52a1\uff1a<\/p>\n<div id=\"crayon-54168a5ac04e1932432809\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e1932432809-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e1932432809-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e1932432809-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e1932432809-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e1932432809-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e1932432809-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e1932432809-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e1932432809-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e1932432809-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e1932432809-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e1932432809-11\">11<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04e1932432809-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">resources<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">document<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getElementById<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;resources&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">resources<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">addEventListener<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;click&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">handler<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">false<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">handler<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">e<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">x<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">e<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">target<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ get the link tha<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">if<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">x<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">nodeName<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">toLowerCase<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">===<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;a&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">alert<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Event delegation:&#8217;<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">+<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">x<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">e<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">.<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">preventDefault<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e1932432809-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\n<p style=\"color: #333333;\">\u56e0\u4e3a\u70b9\u51fb\u4e8b\u4ef6\u5c31\u53d1\u751f\u5728\u8fd9\u4e9b\u9875\u9762\u5143\u7d20\u91cc\uff0c\u4f60\u8981\u505a\u7684\u5c31\u662f\u6bd4\u8f83\u5b83\u4eec\u7684 nodeName\uff0c\u627e\u51fa\u5e94\u8be5\u56de\u5e94\u8fd9\u4e2a\u4e8b\u4ef6\u7684\u90a3\u4e2a\u5143\u7d20\u3002<\/p>\n<p style=\"color: #333333;\">\u514d\u8d23\u58f0\u660e\uff1a\u4e0a\u9762\u8bf4\u7684\u8fd9\u4e24\u4e2a\u5173\u4e8e\u4e8b\u4ef6\u7684\u4f8b\u5b50\uff0c\u5728\u6240\u6709\u6d4f\u89c8\u5668\u91cc\u90fd\u80fd\u8fd0\u884c\uff0c\u9664\u4e86IE6\uff0c\u5728IE6\u4e0a\u4f60\u9700\u8981\u4f7f\u7528\u4e00\u4e2a\u4e8b\u4ef6\u6a21\u578b\uff0c\u800c\u4e0d\u662f\u7b80\u5355\u7684W3C\u7684\u6807\u51c6\u5b9e\u73b0\u3002\u8fd9\u4e5f\u5c31\u662f\u6211\u4eec\u63a8\u8350\u4f7f\u7528\u4e00\u4e9b\u5de5\u5177\u5305\u7684\u539f\u56e0\u3002<\/p>\n<p style=\"color: #333333;\">\u8fd9\u79cd\u65b9\u6cd5\u7684\u597d\u5904\u5e76\u4e0d\u662f\u4ec5\u9650\u4e8e\u628a\u591a\u4e2a\u4e8b\u4ef6\u5904\u7406\u5668\u7f29\u51cf\u4e3a\u4e00\u4e2a\u3002\u4f60\u60f3\u60f3\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4f60\u9700\u8981\u52a8\u6001\u7684\u5f80\u8fd9\u4e2a\u94fe\u63a5\u8868\u91cc\u8ffd\u52a0\u66f4\u591a\u7684\u94fe\u63a5\u3002\u4f7f\u7528\u4e8b\u4ef6\u59d4\u6258\u540e\uff0c\u4f60\u5c31\u4e0d\u9700\u8981\u505a\u5176\u5b83\u4fee\u6539\u4e86\uff1b\u5426\u5219\u7684\u8bdd\uff0c\u4f60\u9700\u8981\u91cd\u65b0\u5faa\u73af\u8fd9\u4e2a\u94fe\u63a5\u8868\uff0c\u91cd\u65b0\u7ed9\u6bcf\u4e2a\u94fe\u63a5\u5b89\u88c5\u4e8b\u4ef6\u5904\u7406\u5668\u3002<\/p>\n<h3 style=\"color: #333333;\">\u533f\u540d\u51fd\u6570\u548c\u6a21\u5757\u5316<\/h3>\n<p style=\"color: #333333;\">\u5728JavaScript\u91cc\u6700\u4ee4\u4eba\u61ca\u607c\u7684\u4e8b\u60c5\u662f\u53d8\u91cf\u6ca1\u6709\u4f7f\u7528\u8303\u56f4\u3002\u4efb\u4f55\u53d8\u91cf\uff0c\u51fd\u6570\uff0c\u6570\u7ec4\uff0c\u5bf9\u8c61\uff0c\u53ea\u8981\u4e0d\u5728\u51fd\u6570\u5185\u90e8\uff0c\u90fd\u88ab\u8ba4\u4e3a\u662f\u5168\u5c40\u7684\uff0c\u8fd9\u5c31\u662f\u8bf4\uff0c\u8fd9\u4e2a\u9875\u9762\u4e0a\u7684\u5176\u5b83\u811a\u672c\u4e5f\u53ef\u4ee5\u8bbf\u95ee\u5b83\uff0c\u800c\u4e14\u53ef\u4ee5\u8986\u76d6\u91cd\u5199\u5b83\u3002<\/p>\n<p style=\"color: #333333;\">\u89e3\u51b3\u529e\u6cd5\u662f\uff0c\u628a\u4f60\u7684\u53d8\u91cf\u653e\u5728\u4e00\u4e2a\u533f\u540d\u51fd\u6570\u5185\u90e8\uff0c\u5b9a\u4e49\u5b8c\u4e4b\u540e\u7acb\u5373\u8c03\u7528\u5b83\u3002\u4f8b\u5982\uff0c\u4e0b\u9762\u7684\u5199\u6cd5\u5c06\u4f1a\u4ea7\u751f\u4e09\u4e2a\u5168\u5c40\u53d8\u91cf\u548c\u4e24\u4e2a\u5168\u5c40\u51fd\u6570\uff1a<\/p>\n<div id=\"crayon-54168a5ac04e9013951528\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e9013951528-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e9013951528-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e9013951528-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e9013951528-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e9013951528-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e9013951528-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e9013951528-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04e9013951528-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04e9013951528-9\">9<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04e9013951528-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">1<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">name<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Chris&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">2<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">age<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8217;34&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">3<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">status<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;single&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">4<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">createMember<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">5<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">6<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">7<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getMemberDetails<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">8<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04e9013951528-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">9<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u5982\u679c\u8fd9\u4e2a\u9875\u9762\u4e0a\u7684\u5176\u5b83\u811a\u672c\u91cc\u4e5f\u5b58\u5728\u4e00\u4e2a\u53eb status \u7684\u53d8\u91cf\uff0c\u9ebb\u70e6\u5c31\u4f1a\u51fa\u73b0\u3002\u5982\u679c\u6211\u4eec\u628a\u5b83\u4eec\u5c01\u88c5\u5728\u4e00\u4e2a myApplication \u91cc\uff0c\u8fd9\u4e2a\u95ee\u9898\u5c31\u8fce\u5203\u800c\u89e3\u4e86\uff1a<\/p>\n<div id=\"crayon-54168a5ac04f0759607253\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f0759607253-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f0759607253-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f0759607253-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f0759607253-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f0759607253-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f0759607253-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f0759607253-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f0759607253-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f0759607253-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f0759607253-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f0759607253-11\">11<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04f0759607253-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">myApplication<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">name<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Chris&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">age<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8217;34&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">status<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;single&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">createMember<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getMemberDetails<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04f0759607253-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u4f46\u662f\uff0c\u8fd9\u6837\u4e00\u6765\uff0c\u5728\u51fd\u6570\u5916\u9762\u5c31\u6ca1\u6709\u4ec0\u4e48\u529f\u80fd\u4e86\u3002\u5982\u679c\u8fd9\u662f\u4f60\u9700\u8981\u7684\uff0c\u90a3\u5c31\u53ef\u4ee5\u4e86\u3002\u4f60\u8fd8\u53ef\u4ee5\u7701\u53bb\u51fd\u6570\u7684\u540d\u79f0\uff1a<\/p>\n<div id=\"crayon-54168a5ac04f7281640105\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f7281640105-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f7281640105-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f7281640105-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f7281640105-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f7281640105-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f7281640105-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f7281640105-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f7281640105-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f7281640105-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04f7281640105-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04f7281640105-11\">11<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04f7281640105-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">name<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Chris&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">age<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8217;34&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">status<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;single&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">createMember<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getMemberDetails<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04f7281640105-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u5982\u679c\u4f60\u60f3\u5728\u51fd\u6570\u5916\u9762\u4e5f\u80fd\u4f7f\u7528\u91cc\u9762\u7684\u4e1c\u897f\uff0c\u90a3\u5c31\u8981\u505a\u4e9b\u4fee\u6539\u3002\u4e3a\u4e86\u80fd\u8bbf\u95ee createMember() \u6216 getMemberDetails(),\u4f60\u9700\u8981\u628a\u5b83\u4eec\u53d8\u6210 myApplication\u7684\u5c5e\u6027\uff0c\u4ece\u800c\u628a\u5b83\u4eec\u66b4\u9732\u4e8e\u5916\u90e8\u7684\u4e16\u754c:<\/p>\n<div id=\"crayon-54168a5ac04fd970411516\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04fd970411516-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04fd970411516-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04fd970411516-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04fd970411516-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04fd970411516-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-11\">11<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04fd970411516-12\">12<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-13\">13<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac04fd970411516-14\">14<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac04fd970411516-15\">15<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac04fd970411516-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">myApplication<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">name<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Chris&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">age<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8217;34&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">status<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;single&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">return<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">createMember<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">getMemberDetails<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-12\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">12<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-13\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">13<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-14\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">14<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/myApplication.createMember() \u548c<\/span><\/div>\n<div id=\"crayon-54168a5ac04fd970411516-15\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">15<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/myApplication.getMemberDetails() \u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u8fd9\u88ab\u79f0\u4f5c module \u6a21\u5f0f\u6216 singleton\u3002Douglas Crockford \u591a\u6b21\u8c08\u5230\u8fc7\u8fd9\u4e9b\uff0cYahoo User Interface Library YUI \u91cc\u5bf9\u6b64\u6709\u5927\u91cf\u7684\u4f7f\u7528\u3002\u4f46\u8fd9\u6837\u4e00\u6765\u8ba9\u6211\u611f\u5230\u4e0d\u4fbf\u7684\u662f\uff0c\u6211\u9700\u8981\u6539\u53d8\u53e5\u5f0f\u6765\u4f7f\u51fd\u6570\u548c\u53d8\u91cf\u80fd\u88ab\u5916\u754c\u8bbf\u95ee\u3002\u66f4\u751a\u8005\uff0c\u8c03\u7528\u65f6\u6211\u8fd8\u9700\u8981\u52a0\u4e0amyApplication \u8fd9\u4e2a\u524d\u7f00\u3002\u6240\u4ee5\uff0c\u6211\u4e0d\u559c\u6b22\u8fd9\u6837\u505a\uff0c\u6211\u66f4\u613f\u610f\u7b80\u5355\u7684\u628a\u9700\u8981\u80fd\u88ab\u5916\u754c\u8bbf\u95ee\u7684\u5143\u7d20\u7684\u6307\u9488\u5bfc\u51fa\u6765\u3002\u8fd9\u6837\u505a\u540e\uff0c\u53cd\u5012\u7b80\u5316\u4e86\u5916\u754c\u8c03\u7528\u7684\u5199\u6cd5\uff1a<\/p>\n<div id=\"crayon-54168a5ac0504246641909\" class=\"crayon-syntax crayon-theme-twilight crayon-font-monaco crayon-os-pc print-yes notranslate\" style=\"color: #ffffff;\" data-settings=\" minimize scroll-mouseover\">\n<div class=\"crayon-toolbar\" data-settings=\" show\"><\/div>\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" style=\"color: #333333 !important;\" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-1\">1<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-2\">2<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-3\">3<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-4\">4<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-5\">5<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-6\">6<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-7\">7<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-8\">8<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-9\">9<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-10\">10<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-11\">11<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-12\">12<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-13\">13<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-14\">14<\/div>\n<div class=\"crayon-num\" style=\"font-weight: inherit !important;\" data-line=\"crayon-54168a5ac0504246641909-15\">15<\/div>\n<div class=\"crayon-num crayon-striped-num\" style=\"font-weight: inherit !important; color: #555555 !important;\" data-line=\"crayon-54168a5ac0504246641909-16\">16<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\" style=\"color: #ffffff !important;\">\n<div id=\"crayon-54168a5ac0504246641909-1\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">01<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">myApplication<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-2\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">02<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">name<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;Chris&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-3\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">03<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">age<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8217;34&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-4\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">04<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">var<\/span><span class=\"crayon-v\" style=\"font-weight: inherit !important; color: #879ab2 !important;\">status<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">=<\/span><span class=\"crayon-s\" style=\"font-weight: inherit !important; color: #a0ab83 !important;\">&#8216;single&#8217;<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-5\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">05<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">createMember<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-6\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">06<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-7\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">07<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-8\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">08<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-t\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">function<\/span><span class=\"crayon-e\" style=\"font-weight: inherit !important; color: #ad8258 !important;\">getMemberDetails<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-9\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">09<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/ [&#8230;]<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-10\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">10<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-11\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">11<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-st\" style=\"font-weight: inherit !important; color: #d8b584 !important;\">return<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">{<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-12\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">12<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">create<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">createMember<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">,<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-13\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">13<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">get<\/span><span class=\"crayon-o\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">:<\/span><span class=\"crayon-i\" style=\"font-weight: inherit !important; color: #fbefb1 !important;\">getMemberDetails<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-14\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">14<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-15\" class=\"crayon-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">15<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">}<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">(<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">)<\/span><span class=\"crayon-sy\" style=\"font-weight: inherit !important; color: #ac99ab !important;\">;<\/span><\/div>\n<div id=\"crayon-54168a5ac0504246641909-16\" class=\"crayon-line crayon-striped-line\" style=\"font-weight: inherit !important;\"><span class=\"crayon-cn\" style=\"font-weight: inherit !important; color: #db7e64 !important;\">16<\/span><span class=\"crayon-h\" style=\"font-weight: inherit !important; color: #ac99ab !important;\"> \u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-c\" style=\"font-weight: inherit !important; color: #7f7b80 !important;\">\/\/\u73b0\u5728\u5199\u6210 myApplication.get()\u548c myApplication.create() \u5c31\u884c\u4e86\u3002<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p style=\"color: #333333;\">\u6211\u628a\u8fd9\u4e2a\u79f0\u4f5c \u201crevealing module pattern.\u201d<\/p>\n<h3 style=\"color: #333333;\">\u53ef\u914d\u7f6e\u5316<\/h3>\n<p style=\"color: #333333;\">\u4e00\u65e6\u6211\u628a\u6240\u5199\u7684JavaScript\u4ee3\u7801\u53d1\u5e03\u5230\u8fd9\u4e2a\u4e16\u754c\u4e0a\uff0c\u5c31\u6709\u4eba\u60f3\u6539\u52a8\u5b83\uff0c\u901a\u5e38\u662f\u4eba\u4eec\u60f3\u8ba9\u5b83\u5b8c\u6210\u4e00\u4e9b\u5b83\u672c\u8eab\u5b8c\u6210\u4e0d\u4e86\u7684\u4efb\u52a1\u2014\u4f46\u901a\u5e38\u4e5f\u662f\u6211\u5199\u7684\u7a0b\u5e8f\u4e0d\u591f\u7075\u6d3b\uff0c\u6ca1\u6709\u63d0\u4f9b\u7528\u6237\u53ef\u81ea\u5b9a\u4e49\u7684\u529f\u80fd\u3002\u89e3\u51b3\u529e\u6cd5\u662f\u7ed9\u4f60\u7684\u811a\u672c\u589e\u52a0\u4e00\u4e2a\u914d\u7f6e\u9879\u5bf9\u8c61\u3002\u6211\u66fe\u7ecf\u5199\u8fc7\u4e00\u7bc7\u6df1\u5165\u4ecb\u7ecdJavaScript\u914d\u7f6e\u9879\u5bf9\u8c61\u7684\u6587\u7ae0\uff0c\u4e0b\u9762\u662f\u5176\u4e2d\u7684\u8981\u70b9\uff1a<\/p>\n<ul style=\"color: #333333;\">\n<li>\u5728\u4f60\u7684\u811a\u672c\u4e86\u6dfb\u52a0\u4e00\u4e2a\u53eb\u505a\u00a0<code>configuration<\/code>\u00a0\u7684\u5bf9\u8c61\u3002<\/li>\n<li>\u8fd9\u4e2a\u5bf9\u8c61\u91cc\u9762\uff0c\u5b58\u653e\u6240\u6709\u4eba\u4eec\u5728\u4f7f\u7528\u8fd9\u4e2a\u811a\u672c\u65f6\u7ecf\u5e38\u8981\u6539\u52a8\u7684\u4e1c\u897f\uff1a\n<ul>\n<li>CSS ID \u548c\u7c7b\u540d\u79f0;<\/li>\n<li>\u6309\u94ae\u7684\u540d\u79f0\uff0c\u6807\u7b7e\u5b57\u7b49;<\/li>\n<li>\u8bf8\u5982\u201d\u6bcf\u9875\u663e\u793a\u56fe\u7247\u6570\u201d\u7684\u503c\uff0c \u201c\u56fe\u50cf\u7684\u663e\u793a\u7684\u5c3a\u5bf8\u201d\u7684\u503c;<\/li>\n<li>\u5730\u70b9\uff0c\u4f4d\u7f6e\uff0c\u4ee5\u53ca\u8bed\u8a00\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5c06\u8fd9\u4e2a\u5bf9\u8c61\u4f5c\u4e3a\u4e00\u4e2a\u516c\u7528\u5c5e\u6027\u8fd4\u56de\u7ed9\u7528\u6237\uff0c\u8fd9\u6837\u7528\u6237\u53ef\u4ee5\u4fee\u6539\u8986\u76d6\u5b83\u3002<\/li>\n<\/ul>\n<p style=\"color: #333333;\">\u901a\u5e38\u60c5\u51b5\u4e0b\u8fd9\u662f\u4f60\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u7684\u6700\u540e\u4e00\u6b65\u8981\u505a\u7684\u4e8b\u60c5\u3002\u6211\u628a\u8fd9\u4e9b\u96c6\u4e2d\u8868\u73b0\u5728\u4e86\u4e00\u4e2a\u4f8b\u5b50\u91cc\uff1a \u201cFive things to do to a script before handing it over to the next developer.\u201d<\/p>\n<p style=\"color: #333333;\">\u5b9e\u9645\u4e0a\uff0c\u4f60\u4e5f\u5e0c\u671b\u4f60\u7684\u4ee3\u7801\u80fd\u591f\u8ba9\u4eba\u4eec\u5f88\u65b9\u9762\u7684\u4f7f\u7528\uff0c\u5e76\u4e14\u6839\u636e\u4ed6\u4eec\u5404\u81ea\u7684\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u6539\u52a8\u3002\u5982\u679c\u4f60\u5b9e\u73b0\u4e86\u8fd9\u4e2a\u529f\u80fd\uff0c\u4f60\u4f1a\u5c11\u6536\u5230\u4e00\u4e9b\u62b1\u6028\u4f60\u7684\u811a\u672c\u7684\u4eba\u53d1\u9001\u7ed9\u4f60\u7684\u8ba9\u4f60\u56f0\u60d1\u7684\u90ae\u4ef6\uff0c\u8fd9\u4e9b\u4fe1\u4ef6\u4f1a\u544a\u8bc9\u4f60\uff0c\u6709\u4eba\u4fee\u6539\u4e86\u4f60\u7684\u811a\u672c\uff0c\u800c\u4e14\u5f88\u597d\u7528\u3002<\/p>\n<h3 style=\"color: #333333;\">\u4e0e\u540e\u53f0\u4ea4\u4e92<\/h3>\n<p style=\"color: #333333;\">\u5728\u8fd9\u4e48\u591a\u5e74\u7684\u7f16\u7a0b\u7ecf\u5386\u4e2d\uff0c\u6211\u6240\u9886\u609f\u5230\u7684\u4e00\u4e2a\u91cd\u8981\u7684\u4e8b\u60c5\u5c31\u662f\uff0cJavaScript\u662f\u4e00\u4e2a\u5f88\u4f18\u79c0\u7684\u5f00\u53d1\u754c\u9762\u4ea4\u4e92\u7684\u8bed\u8a00\uff0c\u4f46\u5982\u679c\u7528\u6765\u5904\u7406\u6570\u5b57\u6216\u8bbf\u95ee\u6570\u636e\u6e90\uff0c\u90a3\u5c31\u6709\u70b9\u4f7f\u4e0d\u4e0a\u52b2\u4e86\u3002<\/p>\n<p style=\"color: #333333;\">\u6700\u521d\uff0c\u6211\u5b66\u4e60JavaScript\uff0c\u662f\u7528\u6765\u66ff\u4ee3Perl\u7684\uff0c\u56e0\u4e3a\u6211\u5f88\u8ba8\u538c\u975e\u8981\u628a\u4ee3\u7801\u62f7\u8d1d\u5230 cgi-bin \u6587\u4ef6\u5939\u4e0b\u624d\u80fd\u4f7fPerl\u8fd0\u884c\u3002\u540e\u6765\uff0c\u6211\u660e\u767d\u4e86\u5e94\u8be5\u4f7f\u7528\u4e00\u79cd\u540e\u53f0\u5de5\u4f5c\u7684\u8bed\u8a00\u6765\u5904\u7406\u4e3b\u8981\u7684\u6570\u636e\uff0c\u800c\u4e0d\u80fd\u4ec0\u4e48\u4e8b\u60c5\u90fd\u8ba9JavaScript\u53bb\u505a\u3002\u66f4\u91cd\u8981\u7684\u662f\u6211\u4eec\u8981\u8003\u8651\u5b89\u5168\u6027\u548c\u8bed\u8a00\u7279\u5f81\u3002<\/p>\n<p style=\"color: #333333;\">\u5982\u679c\u6211\u8bbf\u95ee\u4e00\u4e2aWeb service, \u6211\u53ef\u4ee5\u83b7\u53d6\u5230JSON-P \u683c\u5f0f\u7684\u6570\u636e\uff0c\u5728\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u91cc\u6211\u628a\u5b83\u505a\u5404\u79cd\u5404\u6837\u7684\u6570\u636e\u8f6c\u6362\uff0c\u4f46\u5f53\u6211\u6709\u4e86\u670d\u52a1\u5668\u65f6\uff0c\u6211\u6709\u4e86\u66f4\u591a\u7684\u65b9\u6cd5\u6765\u8f6c\u6362\u6570\u636e\uff0c\u6211\u53ef\u4ee5\u5728Server\u7aef\u751f\u6210JSON\u6216HTML\u683c\u5f0f\u7684\u6570\u636e\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\uff0c\u4ee5\u53ca\u7f13\u5b58\u6570\u636e\u7b49\u64cd\u4f5c\u3002\u5982\u679c\u4f60\u4e8b\u5148\u4e86\u89e3\u4e86\u5e76\u51c6\u5907\u4e86\u8fd9\u4e9b\uff0c\u4f60\u4f1a\u957f\u671f\u6536\u76ca\uff0c\u7701\u53bb\u4e86\u5f88\u591a\u5934\u75bc\u7684\u65f6\u95f4\u3002\u7f16\u5199\u9002\u7528\u5404\u79cd\u6d4f\u89c8\u5668\u7684\u7a0b\u5e8f\u662f\u79cd\u6d6a\u8d39\u65f6\u95f4\uff0c\u4f7f\u7528\u5de5\u5177\u5305\u5427\uff01<\/p>\n<p style=\"color: #333333;\">\u5728\u6211\u6700\u521d\u5f00\u59cb\u641eWeb\u5f00\u53d1\u65f6\uff0c\u5728\u8bbf\u95ee\u9875\u9762\u65f6\uff0c\u7a76\u7adf\u662f\u4f7f\u7528 document.all \u8fd8\u662f\u4f7f\u7528 document.layers \u7684\u95ee\u9898\u4e0a\u75db\u82e6\u7684\u6323\u624e\u4e86\u5f88\u4e45\u3002\u6211\u9009\u62e9\u4e86 document.layers\uff0c\u56e0\u4e3a\u6211\u559c\u6b22\u4efb\u4f55\u5c42\u90fd\u662f\u81ea\u5df1\u7684document\u7684\u601d\u60f3 (\u800c\u4e14\u6211\u5199\u4e86\u592a\u591a\u7684 document.write \u6765\u751f\u6210\u5143\u7d20)\u3002\u5c42\u6a21\u5f0f\u6700\u7ec8\u5931\u8d25\u4e86\uff0c\u4e8e\u662f\u6211\u5f00\u59cb\u4f7f\u7528 document.all\u3002\u5f53Netscape 6 \u516c\u5e03\u53ea\u652f\u6301 W3C DOM \u6a21\u578b\u65f6\uff0c\u6211\u5f88\u9ad8\u5174\uff0c\u4f46\u5176\u5b9e\u7528\u6237\u5e76\u4e0d\u5173\u5fc3\u8fd9\u4e9b\u3002\u7528\u6237\u53ea\u662f\u770b\u89c1\u8fd9\u79cd\u6d4f\u89c8\u5668\u4e0d\u80fd\u663e\u793a\u5927\u591a\u6570\u6d4f\u89c8\u5668\u90fd\u80fd\u6b63\u5e38\u663e\u793a\u7684\u4e1c\u897f\u2014\u8fd9\u662f\u6211\u4eec\u7f16\u7801\u7684\u95ee\u9898\u3002\u6211\u4eec\u7f16\u5199\u4e86\u77ed\u89c6\u7684\u4ee3\u7801\uff0c\u53ea\u80fd\u8fd0\u884c\u5728\u5f53\u524d\u7684\u73af\u5883\u4e0b\uff0c\u800c\u4e0d\u5e78\u7684\u662f\uff0c\u6211\u4eec\u7684\u8fd0\u884c\u73af\u5883\u5374\u5728\u4e0d\u505c\u7684\u6539\u53d8\u3002<\/p>\n<p style=\"color: #333333;\">\u6211\u5df2\u7ecf\u6d6a\u8d39\u4e86\u592a\u591a\u7684\u65f6\u95f4\u6765\u5904\u7406\u5bf9\u5404\u79cd\u6d4f\u89c8\u5668\u5404\u79cd\u7248\u672c\u517c\u5bb9\u7684\u95ee\u9898\u3002\u5584\u4e8e\u5904\u7406\u8fd9\u7c7b\u95ee\u9898\u63d0\u4f9b\u4e86\u6211\u4e00\u4e2a\u597d\u7684\u5de5\u4f5c\u673a\u4f1a\u3002\u4f46\u73b0\u5728\u6211\u4eec\u4e0d\u5fc5\u5728\u5fcd\u53d7\u8fd9\u79cd\u75db\u82e6\u4e86\u3002<\/p>\n<p style=\"color: #333333;\">\u4e00\u4e9b\u5de5\u5177\u5305\uff0c\u4f8b\u5982 YUI, jQuery \u4ee5\u53caDojo \u90fd\u80fd\u591f\u5e2e\u6211\u4eec\u5904\u7406\u8fd9\u7c7b\u95ee\u9898\u3002\u5b83\u4eec\u901a\u8fc7\u62bd\u8c61\u5404\u79cd\u63a5\u53e3\u5b9e\u73b0\u6765\u5904\u7406\u6d4f\u89c8\u5668\u7684\u5404\u79cd\u95ee\u9898\uff0c\u50cf\u7248\u672c\u4e0d\u517c\u5bb9\uff0c\u8bbe\u8ba1\u7f3a\u9677\u7b49\uff0c\u628a\u6211\u4eec\u4ece\u75db\u82e6\u4e2d\u89e3\u6551\u51fa\u6765\u3002\u9664\u975e\u4f60\u8981\u6d4b\u8bd5\u67d0\u4e2aBeta\u7248\u7684\u6d4f\u89c8\u5668\uff0c\u5343\u4e07\u4e0d\u8981\u5728\u81ea\u5df1\u7684\u7a0b\u5e8f\u91cc\u6dfb\u52a0\u4fee\u6b63\u6d4f\u89c8\u5668\u7684\u7f3a\u9677\u7684\u4ee3\u7801\uff0c\u56e0\u4e3a\u4f60\u5f88\u6709\u53ef\u80fd\u5f53\u6d4f\u89c8\u5668\u5df2\u7ecf\u4fee\u6539\u4e86\u8fd9\u4e2a\u95ee\u9898\u65f6\uff0c\u4f60\u5374\u5fd8\u4e86\u5220\u9664\u4f60\u7684\u4ee3\u7801\u3002<\/p>\n<p style=\"color: #333333;\">\u53e6\u4e00\u65b9\u9762\uff0c\u5b8c\u5168\u4f9d\u8d56\u4e8e\u5de5\u5177\u5305\u4e5f\u662f\u4e2a\u77ed\u89c6\u7684\u884c\u4e3a\u3002\u5de5\u5177\u5305\u53ef\u4ee5\u5e2e\u4f60\u5feb\u901f\u7684\u5f00\u53d1\uff0c\u4f46\u5982\u679c\u4f60\u4e0d\u6df1\u5165\u7406\u89e3JavaScript\uff0c\u4f60\u4e5f\u4f1a\u505a\u9519\u4e8b\u3002<\/p>\n<p style=\"color: #333333;\"><a href=\"http:\/\/blog.sae.sina.com.cn\/archives\/5436?qq-pf-to=pcqq.c2c\" target=\"_blank\">http:\/\/blog.sae.sina.com.cn\/archives\/5436?qq-pf-to=pcqq.c2c<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5199JavaScript\u4ee3\u7801\u5df2\u7ecf\u5f88\u4e45\u4e86\uff0c\u90fd\u8bb0\u4e0d\u8d77\u662f\u4ec0\u4e48\u5e74\u4ee3\u5f00\u59cb\u7684\u4e86\u3002\u5bf9\u4e8eJavaScript\u8fd9\u79cd\u8bed\u8a00\u8fd1\u51e0\u5e74\u6240\u53d6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,11],"tags":[],"class_list":["post-3043","post","type-post","status-publish","format-standard","hentry","category-javascript","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/3043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3043"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/3043\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}