-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
221 lines (197 loc) · 12.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=1000, initial-scale=1">
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5W8DZRW');</script>
<!-- End Google Tag Manager -->
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link rel="dns-prefetch" href="//resources.jetbrains.com">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg?&v=8607ff59d5296c7642ecd72bd3daa79b">
<link rel="alternate icon" href="/assets/images/favicon.ico?&v=551939ffa02d7c28c0be13a9d2b33a74" />
<link rel="apple-touch-icon" href="/assets/images/apple-touch-icon.png?&v=65eea4012614e3c0f62e5f5689d7eee8"/>
<link rel="apple-touch-icon" sizes="72x72" href="/assets/images/apple-touch-icon-72x72.png?&v=3500d5728534ae35584b6b53bff33aab"/>
<link rel="apple-touch-icon" sizes="114x114" href="/assets/images/apple-touch-icon-114x114.png?&v=76cfa8bcf5814916963457a0850d1e26"/>
<link rel="apple-touch-icon" sizes="144x144" href="/assets/images/apple-touch-icon-144x144.png?&v=73ddf35e504822ad0deb51e244d8fc9d"/>
<!-- Social Media tag Starts -->
<!-- Place this data between the <head> tags of your website -->
<!-- Open Graph data -->
<meta property="og:title" content=""/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://www.kotlincn.net/"/>
<meta property="og:image" content="https://www.kotlincn.net/assets/images/open-graph/general.png"/>
<meta property="og:description" content="">
<meta property="og:site_name" content="Kotlin"/>
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@kotlin">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image:src" content="https://www.kotlincn.net/assets/images/twitter/general.png">
<!-- Social Media tag Ends -->
<link rel="stylesheet" href="/_assets/styles-v2.css?&v=51d80f95257ab967cfb6efa60df75d7e"> <link rel="stylesheet" href="/_assets/index.css?&v=623ba38f4fc976014da06a10713101c1">
<title>Kotlin 语言中文站</title>
<link rel="stylesheet" href="/_assets/common.css?&v=d8b8aabbc5984eebed30b59359903b28"/>
<style>
.darkness {
background-color: #27282c;
color: #f4f4f4;
}
.global-header-logo-new {
transition: .3s all;
display: inline-block;
margin-bottom: 16px;
min-width: 98px;
height: 22px;
background: url("data:image/svg+xml,%3csvg width='98' height='22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M43.314 1.067h-4.031L30.5 10.422V1.098H27.27v20.273H30.5v-9.82l8.814 9.82h4.177l-9.397-10.484 9.22-9.82Z' fill='%23fff'%3e%3c/path%3e%3cpath d='M54.303 7.186c-1.153-.66-2.45-.994-3.901-.994-1.478 0-2.803.33-3.973.994a7.042 7.042 0 0 0-2.735 2.758c-.65 1.179-.976 2.515-.976 4.01 0 1.494.325 2.835.972 4.01a6.967 6.967 0 0 0 2.716 2.758c1.166.659 2.486.993 3.964.993 1.46 0 2.766-.33 3.923-.993a6.941 6.941 0 0 0 2.694-2.759c.642-1.178.963-2.515.963-4.01 0-1.494-.32-2.83-.963-4.009a6.949 6.949 0 0 0-2.684-2.758Zm-.204 9.328c-.357.74-.859 1.314-1.505 1.73-.646.415-1.392.622-2.233.622-.85 0-1.604-.207-2.26-.623a4.184 4.184 0 0 1-1.528-1.73c-.361-.74-.542-1.589-.542-2.555 0-.966.185-1.815.551-2.555a4.177 4.177 0 0 1 1.537-1.73c.656-.415 1.415-.623 2.278-.623.832 0 1.573.208 2.22.623a4.125 4.125 0 0 1 1.5 1.73c.353.74.529 1.59.529 2.555-.009.962-.19 1.815-.547 2.556ZM64.555 2.836h-3.132v2.52c0 .397-.095.695-.29.889-.194.198-.492.298-.899.298h-1.537v2.664h2.667v7.978c0 .83.167 1.562.506 2.194a3.591 3.591 0 0 0 1.442 1.472c.624.348 1.36.52 2.21.52h2.391v-2.782h-1.798c-.466 0-.841-.163-1.13-.483-.29-.325-.434-.75-.434-1.282V9.207h3.448V6.543h-3.448V2.836h.004ZM73.68.286h-3.186V21.37h3.187V.286ZM80.498.312H77.28v3.273h3.218V.312ZM80.466 6.544H77.28V21.37h3.186V6.544ZM96.67 8.99a4.969 4.969 0 0 0-1.899-2.054c-.818-.492-1.772-.74-2.866-.74-1.161 0-2.178.284-3.05.848-.697.447-1.257 1.052-1.7 1.797l-.018-2.298H84.09V21.37h3.191v-8.298c0-.8.154-1.513.457-2.136a3.39 3.39 0 0 1 1.293-1.45c.556-.342 1.202-.514 1.948-.514.669 0 1.238.14 1.717.42.48.28.841.682 1.085 1.201.249.52.37 1.142.37 1.87v8.907h3.192v-9.355c0-1.138-.226-2.149-.674-3.025Z' fill='%23fff'%3e%3c/path%3e%3cpath d='M20 21H0V1h20L9.793 10.855 20 21Z' fill='url(%23kotlin-logo-large_svg__a)'%3e%3c/path%3e%3cdefs%3e%3cradialGradient id='kotlin-logo-large_svg__a' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(19.335 1.822) scale(22.9097)'%3e%3cstop offset='0.003' stop-color='%23EF4857'%3e%3c/stop%3e%3cstop offset='0.469' stop-color='%23D211EC'%3e%3c/stop%3e%3cstop offset='1' stop-color='%237F52FF'%3e%3c/stop%3e%3c/radialGradient%3e%3c/defs%3e%3c/svg%3e") no-repeat;
font-size: 0;
text-decoration: none;
}
.center-main {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-pack: justify;
justify-content: space-between;
margin-top: 32px;
margin-bottom: 32px;
}
.main-card:first-of-type {
margin-left: 0px;
}
.main-card:last-of-type {
margin-right: 0px;
}
.main-card:hover {;
color: #fff;
text-decoration: none;
background-color: #323337;
}
.main-card {
-ms-flex: 1 1;
flex: 1 1;
color: #fff;
text-decoration: none;
box-sizing: border-box;
padding: 32px 32px 32px;
background: no-repeat 32px 32px;
margin-left:5px;
margin-right:5px;
border: 1px solid rgba(255,255,255,.2);
border-radius: 8px;
}
</style>
</head>
<body class="page__index-new page_restyled_v2 darkness">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5W8DZRW" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="global-layout">
<header class="global-header">
<div class="global-header-panel">
<div data-nosnippet="true" class="global-header-logo-box">
<a class="global-header-logo-new" href="/">Kotlin</a> <a href="https://github.com/JetBrains/kotlin/releases/tag/v1.4.20" target="_blank" class="global-header-logo__version">v1.9.23</a>
<div style="width:765px;"></div>
</div>
<nav class="global-nav">
<ul class="nav-links">
</li>
<li class="nav-item" data-tab-id="文档"><a href="https://book.kotlincn.net/"
class="nav-item-link "
>
中文文档电子书版(1.9.23)
</a>
<li class="nav-item" data-tab-id="文档"><a href="https://legacy.kotlincn.net/"
class="nav-item-link "
>
旧版中文站(1.4.20)
</a>
<li class="nav-item" data-tab-id="演练"><a href="https://play.kotlinlang.org"
class="nav-item-link nav-item-link-external"
target="_blank" >
演练
</a>
</li>
</ul>
</nav> </div>
</header><section class="kotlin-intro-section kto-overview-section darkness">
<div class="g-layout">
<h1 class="kto-heading kto-heading_size_hero">简洁、跨平台、有趣</h1>
<div class="kotlin-intro-actions" style="margin-bottom:calc(1*var(--m-space));">
<p class="kotlin-intro-actions__buttons">
<a class="kto-button kto-button_theme_dark kto-button_size_l kto-button_mode_primary kotlin-intro-actions__why-button smooth-anchor" href="https://book.kotlincn.net/text/getting-started.html">入门</a>
</p>
<p class="kotlin-intro-actions__contributors kto-text kto-text_size_s">
<a target="_blank" href="https://www.jetbrains.com.cn/" class="kotlin-intro-actions__jb-logo"><img class="kotlin-intro-actions__logo" src="/assets/jetbrains-logo.svg" alt="jetbrains logo" width="32" height="32"/></a>
<span class="kto-text kto-text_size_s">
由 <a target="_blank" href="https://www.jetbrains.com.cn/" class="kto-link kto-link_theme_dark">JetBrains</a>
以及开源<a target="_blank" href="https://github.com/JetBrains/kotlin/graphs/contributors" class="kto-link kto-link_theme_dark">贡献者</a>开发
</span>
</p>
</div>
<p class="kto-text kto-text_size_m">
2021 年 Kotlin 官方英文站切换了构建引擎,但并未对外提供新版引擎,于是 Kotlin 中文站网站版(www.kotlincn.cn)只能停留在<a
class="kotlin-intro-section__link kto-link kto-link_theme_dark" href="https://legacy.kotlincn.net/">当时的版本(1.4.20)</a>,新版内容通过<a
class="kotlin-intro-section__link kto-link kto-link_theme_dark" href="https://book.kotlincn.net/">电子书版(book.kotlincn.net)</a>更新(目前已更新到 1.9.23)。
</p>
<p class="kto-text kto-text_size_m">
如今 JetBrains 官方发布了构建引擎对应的产品 <a class="kotlin-intro-section__link kto-link kto-link_theme_dark" target="_blank" href="https://www.jetbrains.com/writerside/">Writerside</a>,只是目前对中文支持还有些问题,预计中文支持问题解决后,网站版就可以照常更新了,敬请期待。现阶段,请继续使用<a
class="kotlin-intro-section__link kto-link kto-link_theme_dark" href="https://book.kotlincn.net/">电子书版</a>。
</p>
<div class="center-main">
<a class="main-card"
href="https://book.kotlincn.net/">
<h3 class="kto-heading kto-heading_size_h3">Kotlin 文档中文版</h3>
<p class="kto-text kto-text_size_m">1.9.23 电子书</p>
</a>
<a class="main-card">
<h3 class="kto-heading kto-heading_size_h3">新版网站</h3>
<p class="kto-text kto-text_size_m">敬请期待</p>
</a>
<a class="main-card"
href="https://legacy.kotlincn.net/">
<h3 class="kto-heading kto-heading_size_h3">旧版网站</h3>
<p class="kto-text kto-text_size_m">1.4.20</p>
</a>
</div>
</div>
<footer role="contentinfo" class="global-footer">
<div class="global-footer-terms darkness">
<div class="g-footer-layout">
<div class="license-footer-row">
<div class="terms-foundation" style="color:rgba(255,255,255,.65);">
<span>Kotlin™ 商标受
<a class="kto-link kto-link_theme_dark"
href="https://kotlinlang.org/foundation/kotlin-foundation.html">
Kotlin 基金会
</a>保护并采用 <a class="kto-link kto-link_theme_dark"
href="https://github.com/JetBrains/kotlin-web-site/blob/master/LICENSE">
Apache 2 授权许可。</a>
</span>
</div>
</div>
<div class="terms-sponsor" style="color:rgba(255,255,255,.65);">
<!-- <a href="http://jetbrains.com" target="_blank">
<div class="jetbrains-link"></div>
</a> -->
<span>Kotlin 与 Kotlin 官方英文站由 <a href="http://jetbrains.com"
class="kto-link kto-link_theme_dark"
target="_blank">JetBrains</a> 支持与开发</span>
<span>
本站由<a href="https://book.kotlincn.net/text/contribute.html#%E4%B8%AD%E6%96%87%E7%AB%99%E7%BF%BB%E8%AF%91%E8%B4%A1%E7%8C%AE%E8%80%85" target="_blank" rel="nofollow" class="kto-link kto-link_theme_dark">中文站翻译贡献者</a>译
</span>
</div>
</div>
</div>
</div>
</footer></div>
</body>
</html>