{"id":1237,"date":"2010-04-29T22:08:40","date_gmt":"2010-04-29T14:08:40","guid":{"rendered":"http:\/\/nan.im\/blog\/?p=1237"},"modified":"2010-04-29T22:08:40","modified_gmt":"2010-04-29T14:08:40","slug":"%e5%88%a9%e7%94%a8-hta-%e6%96%87%e4%bb%b6%e6%9e%84%e5%bb%ba%e7%bd%91%e9%a1%b5%e5%ba%94%e7%94%a8-%e9%99%84%ef%bc%9a%e5%be%ae%e8%bd%af-windows-hta-%e6%96%87%e4%bb%b6%e8%af%ad%e6%b3%95","status":"publish","type":"post","link":"http:\/\/nan.im\/blog\/1237","title":{"rendered":"\u5229\u7528 HTA \u6587\u4ef6\u6784\u5efa Windows \u5e73\u53f0\u7684\u7f51\u9875\u5e94\u7528"},"content":{"rendered":"<p>\u968f\u7740\u7f51\u9875\u5e94\u7528\uff08Web Apps\uff09\u8d8a\u6765\u8d8a\u591a\uff0c\u7f51\u9875\u5e94\u7528\u4e0e\u4f20\u7edf\u5e94\u7528\u7a0b\u5e8f\u7684\u754c\u7ebf\u53d8\u5f97\u4e0d\u662f\u90a3\u4e48\u660e\u663e\uff0c\u5982\u679c\u4f60\u786c\u8981\u8bf4\u533a\u522b\u662f\u662f\u5426\u5728\u6d4f\u89c8\u5668\u5185\u8fd0\u884c\u7684\u8bdd\u4e5f\u672a\u5fc5\u51c6\u786e\u4e86\uff0c\u8c37\u6b4c\u7684 Chrome \u6d4f\u89c8\u5668\u5c31\u5728\u9875\u9762\u83dc\u5355\u4e2d\u63d0\u4f9b\u4e86\u4e00\u4e2a\u201c\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u5feb\u6377\u65b9\u5f0f\u201d\u7684\u529f\u80fd\u4f7f\u7f51\u9875\u5e94\u7528\u770b\u8d77\u6765\u66f4\u50cf\u662f\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4e00\u79cd\u4f18\u96c5\u7684\u65b9\u5f0f\u8fd0\u4f5c\u8bf8\u5982\uff1a\u90ae\u7bb1\u3001\u65e5\u5386\u3001\u6587\u6863\u7b49 \u201c<a href=\"http:\/\/nan.im\/blog\/1187.html\">\u4e91\u8ba1\u7b97<\/a>\u201d \u7f51\u9875\u5e94\u7528\uff0c\u5f00\u53d1\u8005\u751a\u81f3\u53ef\u4ee5\u901a\u8fc7 <a href=\"http:\/\/gears.google.com\/\">Gears<\/a> \u6216\u8005 HTML5 \u6280\u672f\u4f7f\u8fd9\u4e9b\u7f51\u9875\u5e94\u7528\u8131\u79bb\u6301\u7eed\u7684\u4e92\u8054\u7f51\u94fe\u63a5\uff0c\u4e0b\u9762\u4ecb\u7ecd\u7684\u662f\u5728\u5fae\u8f6f Windows \u5e73\u53f0\u5f88\u65e9\u4e4b\u524d\u5c31\u652f\u6301\u7684\u7c7b\u4f3c\u7f51\u9875\u5e94\u7528\u7684 HTA \u683c\u5f0f\u7684\u6587\u4ef6\u8bed\u6cd5\uff0c\u5176\u5b9e\u5c31\u662f\u5728\u539f\u6709 HTML \u8bed\u6cd5\u7684\u57fa\u7840\u4e0a\u589e\u52a0\u4e86\u4e00\u4e2a HTA:APPLICATION \u6807\u7b7e\u6807\u8bb0\uff0c\u6574\u4e2a\u6587\u4ef6\u4ecd\u7136\u662f\u6587\u672c\u7684 HTML \u683c\u5f0f\u628a\u6587\u4ef6\u6269\u5c55\u540d\u6539\u4e3a .hta \u5373\u53ef\u2026\u2026<!--more--><\/p>\n<h3>\u5fae\u8f6f HTA \u6587\u4ef6\u8bed\u6cd5\u793a\u4f8b\uff1a<\/h3>\n<pre lang=\"html4strict\" line=\"1\">\n<html><head><title>hta demo<\/title>\n<hta:application id=\"ohta\" applicationname=\"myapp\" border=\"thin\" borderstyle=\"normal\"\n    caption=\"yes\" icon=\"filename.ico\" maximizebutton=\"yes\" minimizebutton=\"yes\"\n    showintaskbar=\"no\" ingleinstance=\"no\" sysmenu=\"yes\" version=\"1.0\" windowstate=\"normal\">\n<\/head><body scroll=\"no\">\n<h1>hello, world!<\/h1>\n<\/body><\/html>\n<\/pre>\n<p>\u4e0a\u9762\u5c31\u662f\u4e00\u4e2a hta \u5e94\u7528\u7684\u793a\u4f8b\uff0c\u76ee\u7684\u662f\u663e\u793a\u4e00\u4e32 hello, world \u6587\u672c\uff0c\u4f46\u8fd9\u53ea\u662f\u4e00\u4e2a\u5f00\u59cb\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u4e3a\u4f60\u7684 hta \u6587\u4ef6\u589e\u52a0 google \u7684 JavaScript CDN \u5f15\u7528\u4ece\u800c\u4e3a hta \u5f15\u5165\u7c7b\u4f3c jQuery \u7b49\u7b49\u7c7b\u5e93\u8ba9\u4f60\u7684\u7f51\u9875\u5e94\u7528\u4e30\u5bcc\u591a\u5f69\u8d77\u6765\u3002<\/p>\n<h3>\u7f51\u9875\u5e94\u7528 HTA \u6807\u7b7e\u7684\u5404\u79cd\u5c5e\u6027\u8bf4\u660e\uff1a<\/h3>\n<p>applicationname\uff1a\u8bbe\u7f6e HTA \u7684\u540d\u79f0\uff1b<\/p>\n<p>border\uff1a\u8fb9\u6846\u5c5e\u6027\u9ed8\u8ba4 thick \u53ef\u9009 dialog none thin \u7b49\uff1b<\/p>\n<p>borderstyle\uff1a\u8fb9\u6846\u6837\u5f0f\u9ed8\u8ba4 normal \u53ef\u9009 complex raised static sunken \u7b49\uff1b<\/p>\n<p>caption\uff1a\u662f\u5426\u663e\u793a\u6807\u9898\u680f\uff1b<\/p>\n<p>icon\uff1a\u6307\u5b9a\u7f51\u9875\u5e94\u7528\u7684\u56fe\u6807\uff1b<\/p>\n<p>maximizebutton\uff1a\u662f\u5426\u663e\u793a\u6700\u5927\u5316\u6309\u94ae\uff1b<\/p>\n<p>minimizebutton\uff1a\u662f\u5426\u663e\u793a\u6700\u5c0f\u5316\u6309\u94ae\uff1b<\/p>\n<p>showintaskbar\uff1a\u662f\u5426\u5728\u4efb\u52a1\u680f\u663e\u793a\u8be5\u5e94\u7528\uff1b<\/p>\n<p>singleinstance\uff1a\u662f\u5426\u5355\u5b9e\u4f8b\u6a21\u5f0f\u8fd0\u884c\uff1b<\/p>\n<p>sysmenu\uff1a\u662f\u5426\u663e\u793a\u7cfb\u7edf\u83dc\u5355\uff1b<\/p>\n<p>version\uff1a\u7f51\u9875\u5e94\u7528\u7684\u7248\u672c\uff1b<\/p>\n<p>windowstate\uff1a\u521d\u59cb\u7a97\u53e3\u5927\u5c0f\u9ed8\u8ba4 normal \u53ef\u9009 minmize maximize \u7b49\uff1b<\/p>\n<p>\u5728\u7f51\u9875\u5e94\u7528\u811a\u672c\u4e2d\u4ee5\u4e0a\u5c5e\u6027\u7686\u4e3a\u53ea\u8bfb\u5c5e\u6027\u65e0\u6cd5\u52a8\u6001\u4fee\u6539\uff0c\u6b64\u5916\u5728\u811a\u672c\u4e2d\u8fd8\u53ef\u4ee5\u4f7f\u7528 commandLine \u5c5e\u6027\u6765\u68c0\u7d22\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u65f6\u7684\u53c2\u6570\uff0c\u5728 hta \u4e2d\u53ef\u4ee5\u4f7f\u7528 html \u4e2d\u7684\u7edd\u5927\u591a\u6570\u6807\u7b7e\u811a\u672c\u7b49\u7b49\uff0c\u5e76\u4e14\u751a\u81f3\u4f7f\u7528 fso \u4e5f\u4e0d\u4f1a\u6709\u5b89\u5168\u8b66\u544a\uff0c\u4f46\u5e76\u4e0d\u652f\u6301 cookie \u7b49\u5c5e\u6027\u2026\u2026<\/p>\n<p>2010-1206 \u968f\u7740\u5bf9 Google Chrome \u6d4f\u89c8\u5668\u4f7f\u7528\u7684\u6df1\u5165\uff0c\u5229\u7528 Chrome \u7684\u201c\u521b\u5efa\u5e94\u7528\u7a0b\u5e8f\u5feb\u6377\u65b9\u5f0f\u201d\u529f\u80fd\u6765\u4e3a\u7f51\u9875\u5e94\u7528\u521b\u5efa\u4e00\u4e2a\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u4e0d\u5931\u4e3a\u76ee\u524d\u6700\u597d\u7684 WebApp \u89e3\u51b3\u65b9\u6cd5\uff0c\u5e0c\u671b\u5927\u5bb6\u559c\u6b22\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740\u7f51\u9875\u5e94\u7528\uff08Web Apps\uff09\u8d8a\u6765\u8d8a\u591a\uff0c\u7f51\u9875\u5e94\u7528\u4e0e\u4f20\u7edf\u5e94\u7528\u7a0b\u5e8f\u7684\u754c\u7ebf\u53d8\u5f97\u4e0d\u662f\u90a3\u4e48\u660e\u663e\uff0c\u5982\u679c\u4f60\u786c\u8981\u8bf4\u533a\u522b\u662f\u662f\u5426 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[20,40,98],"class_list":["post-1237","post","type-post","status-publish","format-standard","hentry","category-tech","tag-code","tag-html","tag-windows"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/posts\/1237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/comments?post=1237"}],"version-history":[{"count":0,"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/posts\/1237\/revisions"}],"wp:attachment":[{"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/media?parent=1237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/categories?post=1237"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nan.im\/blog\/wp-json\/wp\/v2\/tags?post=1237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}