Skip to content

Commit

Permalink
Site updated: 2023-12-08 23:22:32
Browse files Browse the repository at this point in the history
  • Loading branch information
MulLadylex committed Dec 8, 2023
1 parent 5865cc8 commit 69d8ea6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions 2022/12/04/JavaScript/JavaScript数据类型/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
font-family: 'JetBrains Mono';
src: local('JetBrains Mono'), url('/font/JetBrainsMono-Regular.woff2') format('woff2');
}</style><meta name="generator" content="Hexo 6.3.0"><link rel="alternate" href="/atom.xml" title="LexLady" type="application/atom+xml">
</head><body style="background-image:url(https://ak.hypergryph.com/assets/index/images/ak/pc/bk.jpg);"><main><header class="closed"><nav><div class="navBtn hide"><i class="navBtnIcon"><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span></i></div><ol class="navContent"><li class="navItem" id="search-header"><span class="navItemTitle"><input autocomplete="off" autocorrect="off" autocapitalize="none" placeholder="数据检索" spellcheck="false" maxlength="50" type="text" id="search-input"></span></li><li class="navItem"><a class="navBlock" href="/"><span class="navItemTitle">Home</span></a></li><li class="navItem" matchdata="categories,tags"><a class="navBlock" href="/archives/"><span class="navItemTitle">Archives</span></a></li></ol></nav><div class="search-popup"><div id="search-result"></div></div></header><article><div id="post-bg"><div id="post-title"><h1>JavaScript数据类型</h1><div id="post-info"><span>First Post: <div class="control"><time datetime="2022-12-04T14:43:48.000Z" id="date"> 2022-12-04</time></div></span><br><span>Last Update: <div class="control"><time datetime="2023-12-06T07:36:18.830Z" id="updated"> 2023-12-06</time></div></span></div></div><hr><div id="post-content"><h1 id="数据类型"><a href="#数据类型" class="headerlink" title="数据类型"></a>数据类型</h1><p>JavaScript拥有动态类型,意味着相同的变量可用作不同的类型。</p>
</head><body style="background-image:url(https://ak.hypergryph.com/assets/index/images/ak/pc/bk.jpg);"><main><header class="closed"><nav><div class="navBtn hide"><i class="navBtnIcon"><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span><span class="navBtnIconBar"></span></i></div><ol class="navContent"><li class="navItem" id="search-header"><span class="navItemTitle"><input autocomplete="off" autocorrect="off" autocapitalize="none" placeholder="数据检索" spellcheck="false" maxlength="50" type="text" id="search-input"></span></li><li class="navItem"><a class="navBlock" href="/"><span class="navItemTitle">Home</span></a></li><li class="navItem" matchdata="categories,tags"><a class="navBlock" href="/archives/"><span class="navItemTitle">Archives</span></a></li></ol></nav><div class="search-popup"><div id="search-result"></div></div></header><article><div id="post-bg"><div id="post-title"><h1>JavaScript数据类型</h1><div id="post-info"><span>First Post: <div class="control"><time datetime="2022-12-04T14:43:48.000Z" id="date"> 2022-12-04</time></div></span><br><span>Last Update: <div class="control"><time datetime="2023-12-06T11:58:16.176Z" id="updated"> 2023-12-06</time></div></span></div></div><hr><div id="post-content"><h1 id="数据类型"><a href="#数据类型" class="headerlink" title="数据类型"></a>数据类型</h1><p>JavaScript拥有动态类型,意味着相同的变量可用作不同的类型。</p>
<p>变量的数据类型可以使用<code>typeof</code>操作符来获取,语法:<code>typeof variable</code>,variable是变量名。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs javascript"><span class="hljs-keyword">var</span> length = <span class="hljs-number">16</span>; <span class="hljs-comment">// Number</span><br><span class="hljs-keyword">var</span> lastName = <span class="hljs-string">&quot;L&quot;</span>; <span class="hljs-comment">// String</span><br><span class="hljs-keyword">var</span> x = &#123;<span class="hljs-attr">firstName</span>:<span class="hljs-string">&quot;Lex&quot;</span>, <span class="hljs-attr">lastName</span>:<span class="hljs-string">&quot;L&quot;</span>&#125;; <span class="hljs-comment">// Object</span><br></code></pre></td></tr></table></figure>
<h2 id="值类型"><a href="#值类型" class="headerlink" title="值类型"></a>值类型</h2><p>值类型也是基本类型,保存在栈内存中,占用空间小,保存的是值本身,可以直接访问。</p>
Expand Down Expand Up @@ -51,7 +51,7 @@ <h3 id="字符串"><a href="#字符串" class="headerlink" title="字符串"></a
<li><code>str.valueOf()</code>返回某个字符串对象的原始值</li>
</ul>
<h3 id="模版字符串"><a href="#模版字符串" class="headerlink" title="模版字符串"></a>模版字符串</h3><p>模板字符串是一种方便的字符串语法,可以在字符串中嵌入表达式和变量。</p>
<p>使用反引号<code> </code>作为字符串的定界符分隔,允许多行字符串,带嵌入式表达式的字符串插值。</p>
<p>使用反引号`作为字符串的定界符分隔,允许多行字符串,带嵌入式表达式的字符串插值。</p>
<p>可以包含占位符,占位符使用<code>$&#123;expression&#125;</code>来表示,expression是一个JavaScript表达式,被传递给一个函数来处理(默认是转义字符串,只执行字符串替换,然后拼接到一个字符串中)。</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs javascript"><span class="hljs-string">` string text `</span><br><span class="hljs-string">` string text line 1</span><br><span class="hljs-string"> string text line 2 `</span><br><span class="hljs-string">` string text <span class="hljs-subst">$&#123;expression&#125;</span> string text `</span><br></code></pre></td></tr></table></figure>
<p>var name &#x3D; “Lex”;<br>var str &#x3D; <code>Hello $&#123;name&#125;</code>;</p>
Expand Down
2 changes: 1 addition & 1 deletion search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sitemap.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
http://lexlady.top/2022/12/04/JavaScript/JavaScript%E8%AF%AD%E6%B3%95/
http://lexlady.top/2022/12/04/JavaScript/JavaScript%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B/
http://lexlady.top/2022/12/04/JavaScript/JavaScript%E8%AF%AD%E6%B3%95/
http://lexlady.top/2023/04/11/web3-js/
http://lexlady.top/2022/12/04/JavaScript/JavaScript%E5%AF%B9%E8%B1%A1/
http://lexlady.top/2022/12/04/JavaScript/JavaScript%E5%87%BD%E6%95%B0/
Expand Down
34 changes: 17 additions & 17 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<url>
<loc>http://lexlady.top/2022/12/04/JavaScript/JavaScript%E8%AF%AD%E6%B3%95/</loc>
<loc>http://lexlady.top/2022/12/04/JavaScript/JavaScript%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B/</loc>

<lastmod>2023-12-06</lastmod>

Expand All @@ -11,7 +11,7 @@
</url>

<url>
<loc>http://lexlady.top/2022/12/04/JavaScript/JavaScript%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B/</loc>
<loc>http://lexlady.top/2022/12/04/JavaScript/JavaScript%E8%AF%AD%E6%B3%95/</loc>

<lastmod>2023-12-06</lastmod>

Expand Down Expand Up @@ -310,64 +310,64 @@

<url>
<loc>http://lexlady.top/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>


<url>
<loc>http://lexlady.top/tags/%E9%A2%98%E8%A7%A3/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/tags/Ethernaut/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/tags/Ethereum/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/tags/Remix/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/tags/CapturetheEther/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/tags/%E6%95%99%E7%A8%8B/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/tags/ERC/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/tags/JavaScript/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>
Expand All @@ -376,42 +376,42 @@

<url>
<loc>http://lexlady.top/categories/%E9%9D%B6%E5%9C%BA/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/categories/Spring-Boot/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/categories/Golang/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/categories/Ethereum/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/categories/Ethernaut/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>

<url>
<loc>http://lexlady.top/categories/%E6%95%99%E7%A8%8B/</loc>
<lastmod>2023-12-06</lastmod>
<lastmod>2023-12-08</lastmod>
<changefreq>weekly</changefreq>
<priority>0.2</priority>
</url>
Expand Down

0 comments on commit 69d8ea6

Please sign in to comment.