\u5bfc\u8bfb<\/td>\n | \u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86 JavaScript \u4e0e TypeScript\u4e4b\u95f4\u7684\u8054\u7cfb,JavaScript,\u4e5f\u79f0\u4e3a JS,\u662f\u4e00\u79cd\u7b26\u5408 ECMAScript \u89c4\u8303\u7684\u7f16\u7a0b\u8bed\u8a00\u3002\u8fd9\u662f\u4e00\u4e2a\u9ad8\u7ea7\u522b\u7684\u3001\u901a\u5e38\u662f\u5373\u65f6\u7f16\u8bd1\u7684\u3001\u591a\u8303\u5f0f\u7684\u3002TypeScript \u662f\u4e00\u79cd\u5f3a\u7c7b\u578b\u3001\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u8bd1\u8bed\u8a00\uff0c\u66f4\u591a\u6d88\u606f\u5185\u5bb9,\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\u4e0b\u9762\u6587\u7ae0\u5185\u5bb9 \n<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1\u3001\u4ec0\u4e48\u662f JavaScript\uff1f<\/strong><\/div>\n JavaScript\uff0c\u4e5f\u79f0\u4e3a JS\uff0c\u662f\u4e00\u79cd\u7b26\u5408 ECMAScript \u89c4\u8303\u7684\u7f16\u7a0b\u8bed\u8a00\u3002\u8fd9\u662f\u4e00\u4e2a\u9ad8\u7ea7\u522b\u7684\u3001\u901a\u5e38\u662f\u5373\u65f6\u7f16\u8bd1\u7684\u3001\u591a\u8303\u5f0f\u7684\u3002<\/p>\n Vanilla JavaScript \u662f\u4e00\u4e2a\u540d\u79f0\uff0c\u7528\u4e8e\u6307\u4ee3\u4f7f\u7528\u666e\u901a JavaScript \u800c\u65e0\u9700\u4efb\u4f55\u5176\u4ed6\u5e93\u3002<\/p>\n 2\u3001JavaScript \u6709\u4ec0\u4e48\u7528\uff1f<\/strong><\/div>\n JS \u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u7528\u4e8e\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\uff0c\u4f7f\u7f51\u9875\u5177\u6709\u4ea4\u4e92\u6027\u3002<\/p>\n JavaScript \u53ef\u7528\u4e8e\u4ee5\u4e0b\u7528\u9014\uff1a<\/p>\n \u5411\u7f51\u9875\u6dfb\u52a0\u4ea4\u4e92\u884c\u4e3a\u3002<\/p>\n \u521b\u5efa Web \u548c\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n \u6784\u5efa Web \u670d\u52a1\u5668\u548c\u5f00\u53d1\u670d\u52a1\u5668\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n \u6e38\u620f\u5f00\u53d1<\/p>\n 3\u3001\u4ec0\u4e48\u662f TypeScript\uff1f<\/strong><\/div>\n TypeScript \u662f\u4e00\u79cd\u5f3a\u7c7b\u578b\u3001\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u8bd1\u8bed\u8a00\u3002TypeScript\uff0c\u4e5f\u79f0\u4e3a TS\uff0c\u662f JavaScript(JS) \u9075\u5faa JavaScript \u7684\u8d85\u96c6\u3002\u7b80\u800c\u8a00\u4e4b\uff0cTS \u5c31\u662f JS \u52a0\u4e0a\u66f4\u591a\u7684\u9644\u52a0\u529f\u80fd\u3002<\/p>\n 4\u3001TypeScript \u6709\u54ea\u4e9b\u7279\u70b9\uff1f<\/strong><\/div>\n TypeScript \u53ea\u662f JavaScript\u3002\u60a8\u53ea\u9700\u8981\u4e86\u89e3 JS \u5373\u53ef\u4f7f\u7528 TS\u3002\u8fd9\u662f\u56e0\u4e3a\u4f60\u6240\u6709\u7684 TypeScript \u4ee3\u7801\u90fd\u88ab\u8f6c\u6362\u6210 JavaScript \u6765\u6267\u884c\u3002<\/p>\n TypeScript \u652f\u6301\u5176\u4ed6 JS \u5e93\uff1b\u56e0\u6b64\uff0cTypeScript \u751f\u6210\u7684 JS \u53ef\u4ee5\u91cd\u7528\u6240\u6709\u73b0\u6709\u7684 JavaScript \u6846\u67b6\u3001\u5de5\u5177\u548c\u5e93\u3002<\/p>\n JS \u6587\u4ef6\u662f TS \u6587\u4ef6\u3002\u8fd9\u53ea\u662f\u610f\u5473\u7740\u4efb\u4f55\u6709\u6548\u7684 .js \u6587\u4ef6\u90fd\u53ef\u4ee5*\u91cd\u547d\u540d\u4e3a .ts \u5e76\u4e0e\u5176\u4ed6 TS \u6587\u4ef6\u517c\u5bb9\u3002<\/p>\n TypeScript \u662f\u53ef\u79fb\u690d\u7684\u3002TS \u53ef\u4ee5\u5728\u4efb\u4f55\u8fd0\u884c JS \u7684\u73af\u5883\u4e2d\u8fd0\u884c\uff0c\u5b83\u53ef\u4ee5\u8de8\u6d4f\u89c8\u5668\u3001\u8bbe\u5907\u3001\u64cd\u4f5c\u7cfb\u7edf\u7b49...... TypeScript \u4e0d\u9700\u8981\u4e13\u7528\u7684 VM \u6216\u7279\u5b9a\u7684\u8fd0\u884c\u65f6\u73af\u5883\u6765\u6267\u884c\u3002<\/p>\n 5\u3001TypeScript \u76f8\u5bf9\u4e8e JavaScript \u7684\u7528\u9014\u662f\u4ec0\u4e48\uff1f<\/strong><\/div>\n TypeScript \u76f8\u5bf9\u4e8e JavaScript \u7684\u4f18\u52bf\u5305\u62ec\uff1a<\/p>\n \u652f\u6301\u7c7b\u548c\u6a21\u5757\u3002<\/p>\n \u9759\u6001\u7c7b\u578b\u68c0\u67e5<\/p>\n ES6 \u529f\u80fd\u652f\u6301<\/p>\n \u6e05\u9664\u5e93 API \u5b9a\u4e49\u3002<\/p>\n \u5bf9 JavaScript \u6253\u5305\u7684\u5185\u7f6e\u652f\u6301\u3002<\/p>\n JavaScript \u7684\u8d85\u96c6<\/p>\n 6\u3001\u6211\u4eec\u5e94\u8be5\u5f00\u59cb\u4f7f\u7528 TypeScript \u5417\uff1f<\/strong><\/div>\n \u7531\u4e8e TypeScript \u662f\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\u7684\u8bed\u8a00\uff0c\u5b83\u4f7f\u4ee3\u7801\u66f4\u52a0\u53ef\u91cd\u7528\u3001\u7b80\u5355\u3001\u5e72\u51c0\u548c\u4e00\u81f4\u3002\u6240\u4ee5\u6bd4\u8f83\u5efa\u8bae\u4f7f\u7528 TypeScript \u6765\u6784\u5efa\u4e00\u4e2a\u5e9e\u5927\u7684\u9879\u76ee\u3002\u4f46vanilla JavaScript \u53ef\u7528\u4e8e\u8f83\u5c0f\u7684\u7f16\u7801\u9879\u76ee\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u5b9e\u8df5\u3002<\/p>\n \u5230\u6b64\u8fd9\u7bc7\u5173\u4e8e JavaScript \u4e0e TypeScript\u4e4b\u95f4\u7684\u8054\u7cfb\u7684\u6587\u7ae0\u5c31\u4ecb\u7ecd\u5230\u8fd9\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":" JavaScript\uff0c\u4e5f\u79f0\u4e3a JS\uff0c\u662f\u4e00\u79cd\u7b26\u5408 ECMAScript \u89c4\u8303\u7684\u7f16\u7a0b\u8bed\u8a00\u3002\u8fd9\u662f\u4e00\u4e2a\u9ad8\u7ea7\u522b\u7684\u3001\u901a\u5e38\u662f […]<\/p>\n","protected":false},"author":1479,"featured_media":127306,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-231302","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/231302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=231302"}],"version-history":[{"count":4,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/231302\/revisions"}],"predecessor-version":[{"id":231311,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/231302\/revisions\/231311"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/127306"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=231302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=231302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=231302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |