mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-02-27 09:32:01 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
</div></div>
|
||||
<p><strong><code>link()</code></strong> 方法创建一个 HTML 元素 <a href="/zh-CN/docs/Web/HTML/Element/a" title="HTML <a> 元素(或称锚元素)可以创建通向其他网页、文件、同一页面内的位置、电子邮件地址或任何其他 URL 的超链接。"><code><a></code></a> ,用该字符串作为超链接的显示文本,参数作为指向另一个 URL 的超链接。</p>
|
||||
<h2 id="语法">语法</h2>
|
||||
<pre class="syntaxbox"><code><var>str</var>.link(<var>url</var>)</code></pre>
|
||||
<pre><code class="language-javascript"><code><var>str</var>.link(<var>url</var>)</code></code></pre>
|
||||
<h3 id="参数">参数</h3>
|
||||
<dl>
|
||||
<dt><code>url</code></dt>
|
||||
@@ -18,12 +18,12 @@
|
||||
<h2 id="Examples" name="Examples">示例</h2>
|
||||
<h3 id="例子:使用_link">例子:使用 <code>link</code></h3>
|
||||
<p>下例显示一个单词 "MDN" 作为超链接,指向 Mozilla Developer Network。</p>
|
||||
<pre class="brush:js">var hotText = 'MDN';
|
||||
<pre><code class="language-js">var hotText = 'MDN';
|
||||
var URL = 'https://developer.mozilla.org/';
|
||||
|
||||
document.write('Click to return to ' + hotText.link(URL));
|
||||
// Click to return to <a href="https://developer.mozilla.org/">MDN</a>
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user