{"id":7627,"date":"2023-10-31T09:38:03","date_gmt":"2023-10-31T01:38:03","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=7627"},"modified":"2023-10-31T09:38:03","modified_gmt":"2023-10-31T01:38:03","slug":"app%e5%a6%82%e4%bd%95%e7%94%a8js%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/7627\/","title":{"rendered":"app\u5982\u4f55\u7528js\u5f00\u53d1\u5de5\u5177\uff1f"},"content":{"rendered":"

\u5f00\u53d1\u4e00\u4e2aapp\u9700\u8981\u4f7f\u7528\u591a\u79cd\u6280\u672f\u548c\u5de5\u5177\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662fJavaScript\uff08\u7b80\u79f0JS\uff09\u3002JS\u662f\u4e00\u79cd\u5e7f\u6cdb\u5e94\u7528\u4e8eweb\u5f00\u53d1\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528JS\u5f00\u53d1\u4e00\u4e2aapp\u7684\u5de5\u5177\u548c\u539f\u7406\u3002<\/p>\n

\u9996\u5148\uff0c\u4f60\u9700\u8981\u4e86\u89e3\u4e00\u4e9b\u57fa\u672c\u7684JS\u77e5\u8bc6\uff0c\u5982\u53d8\u91cf\u3001\u51fd\u6570\u3001\u6761\u4ef6\u8bed\u53e5\u548c\u5faa\u73af\u7b49\u3002\u5982\u679c\u4f60\u5bf9JS\u8fd8\u4e0d\u719f\u6089\uff0c\u53ef\u4ee5\u5148\u5b66\u4e60\u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\uff0c\u6bd4\u5982W3School\u7684JS\u6559\u7a0b\u6216\u8005MDN\u7684JS\u6587\u6863\u3002<\/p>\n

\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u6765\u4ecb\u7ecd\u4e00\u4e9b\u7528\u4e8e\u5f00\u53d1app\u7684JS\u5de5\u5177\u3002<\/p>\n

1. \u5f00\u53d1\u73af\u5883\uff1a\u4f60\u9700\u8981\u4e00\u4e2aJS\u5f00\u53d1\u73af\u5883\uff0c\u6bd4\u5982Node.js\u6216\u8005\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\u3002APP\u5f00\u53d1<\/a>Node.js\u662f\u4e00\u4e2a\u57fa\u4e8eChrome V8\u5f15\u64ce\u7684JavaScript\u8fd0\u884c\u73af\u5883\uff0c\u53ef\u4ee5\u8ba9\u4f60\u5728\u670d\u52a1\u5668\u7aef\u8fd0\u884cJS\u4ee3\u7801\u3002\u5b83\u63d0\u4f9b\u4e86\u5f88\u591a\u6709\u7528\u7684\u6a21\u5757\u548c\u5de5\u5177\uff0c\u6bd4\u5982npm\uff08Node\u5305\u7ba1\u7406\u5668\uff09\u548cExpress.js\uff08\u4e00\u4e2a\u6d41\u884c\u7684Web\u5e94\u7528\u6846\u67b6\uff09\u3002\u53e6\u5916\uff0c\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\uff08\u6bd4\u5982Chrome DevTools\uff09\u4e5f\u53ef\u4ee5\u7528\u6765\u8c03\u8bd5\u548c\u6d4b\u8bd5JS\u4ee3\u7801\u3002<\/p>\n

2. \u6846\u67b6\u548c\u5e93\uff1aJS\u6709\u5f88\u591a\u6d41\u884c\u7684\u6846\u67b6\u548c\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u5feb\u5730\u5f00\u53d1app\u3002\u6bd4\u5982React.js\u662f\u4e00\u4e2a\u7528\u4e8e\u6784\u5efa\u7528\u6237\u754c\u9762\u7684JavaScript\u5e93\uff0cVue.<\/p>\n

<\/figure>\n<\/p>\n

js\u662f\u4e00\u4e2a\u7528\u4e8e\u6784\u5efaWeb\u754c\u9762\u7684\u6846\u67b6\uff0cAngular.js\u662f\u4e00\u4e2a\u7528\u4e8e\u6784\u5efa\u52a8\u6001Web\u5e94\u7528\u7684\u6846\u67b6\u3002\u9009\u62e9\u4e00\u4e2a\u9002\u5408\u4f60\u7684\u9879\u76ee\u7684\u6846\u67b6\u6216\u5e93\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n

3. \u5f00\u53d1\u5de5\u5177\uff1a\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6765\u7f16\u5199\u548c\u8c03\u8bd5JS\u4ee3\u7801\uff0c\u6bd4\u5982Visual Studio Code\u3001WebStorm\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u63d2\u4ef6\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7f16\u5199\u4ee3\u7801\u3002<\/p>\n

4. \u8c03\u8bd5\u5de5\u5177\uff1a\u8c03\u8bd5\u662f\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u90e8\u5206\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\u6765\u8c03\u8bd5JS\u4ee3\u7801\uff0c\u6bd4\u5982\u8bbe\u7f6e\u65ad\u70b9\u3001\u67e5\u770b\u53d8\u91cf\u7684\u503c\u3001\u6267\u884c\u4ee3\u7801\u7b49\u3002\u53e6\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u6bd4\u5982Chrome DevTools\u3001Firebug\u7b49\u3002<\/p>\n

5. \u7248\u672c\u63a7\u5236\u5de5\u5177\uff1a\u7248\u672c\u63a7\u5236\u662f\u4e00\u4e2a\u56e2\u961f\u534f\u4f5c\u5f00\u53d1\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u90e8\u5206\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Git\u6765\u7ba1\u7406\u4f60\u7684\u4ee3\u7801\u7248\u672c\uff0c\u5e76\u4e0e\u56e2\u961f\u6210\u5458\u8fdb\u884c\u534f\u4f5c\u5f00\u53d1\u3002GitHub\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4ee3\u7801\u6258\u7ba1\u5e73\u53f0\uff0c\u4f60\u53ef\u4ee5\u5c06\u4f60\u7684\u4ee3\u7801\u5b58\u50a8\u5728GitHub\u4e0a\uff0c\u5e76\u4e0e\u5176\u4ed6\u4eba\u5171\u4eab\u548c\u5408\u4f5c\u3002<\/p>\n

\u4ee5\u4e0a\u662f\u4e00APP<\/a>\u4e9b\u5e38\u7528\u7684JS\u5f00\u53d1\u5de5\u5177\uff0c\u4f7f\u7528\u5b83\u4eec\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u5f00\u53d1app\u3002\u5f53\u7136\uff0c\u8fd9\u53ea\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ecb\u7ecd\uff0c\u5b9e\u9645\u7684\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u8fd8\u9700\u8981\u5b66\u4e60\u66f4\u591a\u7684\u6280\u672f\u548c\u5de5\u5177\u3002<\/p>\n

\u603b\u7ed3\u4e00\u4e0b\uff0c\u4f7f\u7528JS\u5f00\u53d1app\u9700\u8981\u4e00\u4e2a\u5f00\u53d1\u73af\u5883\u3001\u4e00\u4e9b\u6846\u67b6\u548c\u5e93\u3001\u5f00\u53d1\u5de5\u5177\u3001\u8c03\u8bd5\u5de5\u5177\u548c\u7248\u672c\u63a7\u5236\u5de5\u5177\u3002\u901a\u8fc7\u5b66\u4e60\u548c\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u66f4\u597d\u5730\u5f00\u53d1\u548c\u7ba1\u7406\u4f60\u7684app\u9879\u76ee\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5f00\u53d1\u4e00\u4e2aapp\u9700\u8981\u4f7f\u7528\u591a\u79cd\u6280\u672f\u548c\u5de5\u5177\uff0c\u5176\u4e2d\u4e4b\u4e00\u5c31\u662fJavaScript\uff08\u7b80\u79f0JS\uff09\u3002JS\u662f\u4e00\u79cd\u5e7f\u6cdb\u5e94\u7528\u4e8eweb\u5f00\u53d1\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528JS\u5f00\u53d1\u4e00\u4e2aa<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[2340,27,52,25,12087],"topic":[],"class_list":["post-7627","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-exe","tag-27","tag-52","tag-25"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/7627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=7627"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/7627\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=7627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=7627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=7627"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=7627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}