{"id":63856,"date":"2026-01-22T13:41:05","date_gmt":"2026-01-22T05:41:05","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/63856.html"},"modified":"2026-01-22T13:41:05","modified_gmt":"2026-01-22T05:41:05","slug":"javascript-1-%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e5%8f%8a%e5%ad%98%e5%82%a8%e5%b7%ae%e5%88%ab","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/63856.html","title":{"rendered":"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u57fa\u672c\u6570\u636e\u7c7b\u578b<\/li>\n<li>\u5f15\u7528\u6570\u636e\u7c7b\u578b<\/li>\n<li>\u5b58\u50a8\u65b9\u5f0f\u7684\u5dee\u522b&#xff08;\u6838\u5fc3&#xff09;<\/li>\n<li>\u8d4b\u503c\u8868\u73b0\u7684\u5dee\u522b<\/li>\n<\/ul>\n<hr \/>\n<h2>\u524d\u8a00<\/h2>\n<p>\u5728 JavaScript \u4e2d&#xff0c;\u6570\u636e\u7c7b\u578b\u4e3b\u8981\u5206\u4e3a\u4e24\u5927\u7c7b&#xff1a;\u57fa\u672c\u6570\u636e\u7c7b\u578b\u548c\u5f15\u7528\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<h2>\u57fa\u672c\u6570\u636e\u7c7b\u578b<\/h2>\n<p>String (\u5b57\u7b26\u4e32),Number (\u6570\u5b57), Boolean (\u5e03\u5c14), null, undefined, Symbol (\u7b26\u53f7), BigInt (\u5927\u6574\u6570)<\/p>\n<h2>\u5f15\u7528\u6570\u636e\u7c7b\u578b<\/h2>\n<p>Object (\u5bf9\u8c61), Array (\u6570\u7ec4), Function (\u51fd\u6570), Date, Map&#xff0c;RegExp \u7b49<\/p>\n<h2>\u5b58\u50a8\u65b9\u5f0f\u7684\u5dee\u522b&#xff08;\u6838\u5fc3&#xff09;<\/h2>\n<p>JavaScript \u5f15\u64ce\u5728\u5185\u5b58\u4e2d\u5212\u5206\u4e86\u4e24\u4e2a\u533a\u57df&#xff1a;\u6808&#xff08;Stack&#xff09; \u548c \u5806&#xff08;Heap&#xff09;\u3002 A. \u57fa\u672c\u7c7b\u578b&#xff1a;\u5b58\u653e\u5728\u201c\u6808\u201d\u4e2d \u7279\u70b9&#xff1a;\u5360\u636e\u7a7a\u95f4\u5c0f\u3001\u5927\u5c0f\u56fa\u5b9a\u3002<\/p>\n<p>\u5b58\u50a8\u65b9\u5f0f&#xff1a;\u53d8\u91cf\u540d\u548c\u503c\u76f4\u63a5\u5b58\u50a8\u5728\u6808\u5185\u5b58\u4e2d\u3002\u5f53\u4f60\u8bbf\u95ee\u53d8\u91cf\u65f6&#xff0c;\u76f4\u63a5\u62ff\u5230\u7684\u5c31\u662f\u90a3\u4e2a\u503c\u3002<\/p>\n<p>B. \u5f15\u7528\u7c7b\u578b&#xff1a;\u5b58\u653e\u5728\u201c\u5806\u201d\u4e2d \u7279\u70b9&#xff1a;\u5360\u636e\u7a7a\u95f4\u5927\u3001\u5927\u5c0f\u4e0d\u56fa\u5b9a\u3002<\/p>\n<p>\u5b58\u50a8\u65b9\u5f0f&#xff1a;<\/p>\n<p>\u771f\u6b63\u7684\u5bf9\u8c61\u6570\u636e\u5b58\u653e\u5728\u5806\u5185\u5b58\u4e2d\u3002<\/p>\n<p>\u800c\u5728\u6808\u5185\u5b58\u4e2d&#xff0c;\u5b58\u653e\u7684\u662f\u4e00\u4e2a\u6307\u9488&#xff08;\u5185\u5b58\u5730\u5740&#xff09;&#xff0c;\u8fd9\u4e2a\u6307\u9488\u6307\u5411\u5806\u5185\u5b58\u91cc\u7684\u90a3\u4e2a\u5bf9\u8c61\u3002<\/p>\n<h2>\u8d4b\u503c\u8868\u73b0\u7684\u5dee\u522b<\/h2>\n<p>\u2460 \u57fa\u672c\u7c7b\u578b\u7684\u8d4b\u503c&#xff1a;\u503c\u62f7\u8d1d \u5f53\u4f60\u628a\u4e00\u4e2a\u57fa\u672c\u7c7b\u578b\u53d8\u91cf\u8d4b\u503c\u7ed9\u53e6\u4e00\u4e2a\u65f6&#xff0c;\u4f1a\u5728\u6808\u91cc\u5f00\u8f9f\u4e00\u4e2a\u65b0\u7a7a\u95f4&#xff0c;\u628a\u503c\u590d\u5236\u4e00\u4efd\u3002\u4e24\u4e2a\u53d8\u91cf\u4e92\u4e0d\u5f71\u54cd\u3002<\/p>\n<p><span class=\"token keyword\">let<\/span> a <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">10<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">let<\/span> b <span class=\"token operator\">&#061;<\/span> a<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u590d\u5236\u4e86\u503c 10<\/span><br \/>\nb <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">20<\/span><span class=\"token punctuation\">;<\/span><br \/>\nconsole<span class=\"token punctuation\">.<\/span><span class=\"token function\">log<\/span><span class=\"token punctuation\">(<\/span>a<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ 10 (a \u6ca1\u53d8)<\/span><\/p>\n<p>\u2461 \u5f15\u7528\u7c7b\u578b\u7684\u8d4b\u503c&#xff1a;\u5730\u5740\u62f7\u8d1d \u5f53\u4f60\u628a\u4e00\u4e2a\u5f15\u7528\u7c7b\u578b\u8d4b\u503c\u7ed9\u53e6\u4e00\u4e2a\u65f6&#xff0c;\u590d\u5236\u7684\u662f\u6808\u91cc\u7684\u6307\u9488&#xff08;\u5730\u5740&#xff09;\u3002\u4e24\u4e2a\u53d8\u91cf\u6307\u5411\u540c\u4e00\u4e2a\u5806\u5185\u5b58\u5730\u5740\u3002<\/p>\n<p><span class=\"token keyword\">let<\/span> obj1 <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">name<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;Jack&#039;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">let<\/span> obj2 <span class=\"token operator\">&#061;<\/span> obj1<span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u590d\u5236\u4e86\u5730\u5740&#xff0c;obj2 \u4e5f\u6307\u5411\u540c\u4e00\u4e2a\u5bf9\u8c61<\/span><\/p>\n<p>obj2<span class=\"token punctuation\">.<\/span>name <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;Rose&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\nconsole<span class=\"token punctuation\">.<\/span><span class=\"token function\">log<\/span><span class=\"token punctuation\">(<\/span>obj1<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ &#039;Rose&#039; (obj1 \u88ab\u5f71\u54cd\u4e86&#xff0c;\u56e0\u4e3a\u6539\u7684\u662f\u540c\u4e00\u4e2a\u5806\u5185\u5b58\u91cc\u7684\u4e1c\u897f)<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u57fa\u672c\u6570\u636e\u7c7b\u578b\u5f15\u7528\u6570\u636e\u7c7b\u578b\u5b58\u50a8\u65b9\u5f0f\u7684\u5dee\u522b&#xff08;\u6838\u5fc3&#xff09;\u8d4b\u503c\u8868\u73b0\u7684\u5dee\u522b\u524d\u8a00<br \/>\n\u5728 JavaScript \u4e2d&#xff0c;\u6570\u636e\u7c7b\u578b\u4e3b\u8981\u5206\u4e3a\u4e24\u5927\u7c7b&#xff1a;\u57fa\u672c\u6570\u636e\u7c7b\u578b\u548c\u5f15\u7528\u6570\u636e\u7c7b\u578b\u3002<br \/>\n\u57fa\u672c\u6570\u636e\u7c7b\u578b<br \/>\nString (\u5b57\u7b26\u4e32),Number (\u6570\u5b57), Boolean (\u5e03\u5c14), null, undefined, Symbol (\u7b26\u53f7), BigInt (\u5927\u6574\u6570)<br \/>\n\u5f15\u7528\u6570\u636e\u7c7b\u578b<br \/>\nObject (\u5bf9\u8c61), Array (\u6570\u7ec4), Func<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[187,190],"topic":[],"class_list":["post-63856","post","type-post","status-publish","format-standard","hentry","category-server","tag-javascript","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/63856.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u57fa\u672c\u6570\u636e\u7c7b\u578b\u5f15\u7528\u6570\u636e\u7c7b\u578b\u5b58\u50a8\u65b9\u5f0f\u7684\u5dee\u522b&#xff08;\u6838\u5fc3&#xff09;\u8d4b\u503c\u8868\u73b0\u7684\u5dee\u522b\u524d\u8a00 \u5728 JavaScript \u4e2d&#xff0c;\u6570\u636e\u7c7b\u578b\u4e3b\u8981\u5206\u4e3a\u4e24\u5927\u7c7b&#xff1a;\u57fa\u672c\u6570\u636e\u7c7b\u578b\u548c\u5f15\u7528\u6570\u636e\u7c7b\u578b\u3002 \u57fa\u672c\u6570\u636e\u7c7b\u578b String (\u5b57\u7b26\u4e32),Number (\u6570\u5b57), Boolean (\u5e03\u5c14), null, undefined, Symbol (\u7b26\u53f7), BigInt (\u5927\u6574\u6570) \u5f15\u7528\u6570\u636e\u7c7b\u578b Object (\u5bf9\u8c61), Array (\u6570\u7ec4), Func\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/63856.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-22T05:41:05+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/63856.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/63856.html\",\"name\":\"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-22T05:41:05+00:00\",\"dateModified\":\"2026-01-22T05:41:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/63856.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/63856.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/63856.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/63856.html","og_locale":"zh_CN","og_type":"article","og_title":"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u57fa\u672c\u6570\u636e\u7c7b\u578b\u5f15\u7528\u6570\u636e\u7c7b\u578b\u5b58\u50a8\u65b9\u5f0f\u7684\u5dee\u522b&#xff08;\u6838\u5fc3&#xff09;\u8d4b\u503c\u8868\u73b0\u7684\u5dee\u522b\u524d\u8a00 \u5728 JavaScript \u4e2d&#xff0c;\u6570\u636e\u7c7b\u578b\u4e3b\u8981\u5206\u4e3a\u4e24\u5927\u7c7b&#xff1a;\u57fa\u672c\u6570\u636e\u7c7b\u578b\u548c\u5f15\u7528\u6570\u636e\u7c7b\u578b\u3002 \u57fa\u672c\u6570\u636e\u7c7b\u578b String (\u5b57\u7b26\u4e32),Number (\u6570\u5b57), Boolean (\u5e03\u5c14), null, undefined, Symbol (\u7b26\u53f7), BigInt (\u5927\u6574\u6570) \u5f15\u7528\u6570\u636e\u7c7b\u578b Object (\u5bf9\u8c61), Array (\u6570\u7ec4), Func","og_url":"https:\/\/www.wsisp.com\/helps\/63856.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-22T05:41:05+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/63856.html","url":"https:\/\/www.wsisp.com\/helps\/63856.html","name":"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-22T05:41:05+00:00","dateModified":"2026-01-22T05:41:05+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/63856.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/63856.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/63856.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"JavaScript-1.\u6570\u636e\u7c7b\u578b\u53ca\u5b58\u50a8\u5dee\u522b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/63856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=63856"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/63856\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=63856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=63856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=63856"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=63856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}