forked from qiubaiying/qiubaiying.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
794 lines (451 loc) · 23.1 KB
/
index.html
File metadata and controls
794 lines (451 loc) · 23.1 KB
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="utf-8">
<title>chentj's Blog | Inflexible thinking, bad humor</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#3F51B5">
<meta name="keywords" content="">
<meta name="description" content="���������������������̰���������ܼ�������̰����">
<meta property="og:type" content="website">
<meta property="og:title" content="chentj's Blog">
<meta property="og:url" content="https://tianjiec.top/index.html">
<meta property="og:site_name" content="chentj's Blog">
<meta property="og:description" content="���������������������̰���������ܼ�������̰����">
<meta property="og:locale" content="default">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="chentj's Blog">
<meta name="twitter:description" content="���������������������̰���������ܼ�������̰����">
<link rel="alternate" type="application/atom+xml" title="chentj's Blog" href="/atom.xml">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
<script>window.lazyScripts=[]</script>
<!-- custom head -->
</head>
<body>
<div id="loading" class="active"></div>
<aside id="menu">
<div class="inner flex-row-vertical">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
<i class="icon icon-lg icon-close"></i>
</a>
<div class="brand-wrap" style="background-image:url(/img/bg.jpg)">
<div class="brand">
<a href="/" class="avatar waves-effect waves-circle waves-light">
<img src="/img/header1.jpg">
</a>
<hgroup class="introduce">
<h5 class="nickname">chentj</h5>
<a href="mailto:undefined" class="mail">
</a></hgroup>
</div>
</div>
<div class="scroll-wrap flex-col">
<ul class="nav">
<li class="waves-block waves-effect active">
<a href="/">
<i class="icon icon-lg icon-home"></i>
主页
</a>
</li>
<li class="waves-block waves-effect">
<a href="/archives">
<i class="icon icon-lg icon-archives"></i>
Archives
</a>
</li>
<li class="waves-block waves-effect">
<a href="/tags">
<i class="icon icon-lg icon-tags"></i>
Tags
</a>
</li>
<li class="waves-block waves-effect">
<a href="/categories">
<i class="icon icon-lg icon-th-list"></i>
Categories
</a>
</li>
<li class="waves-block waves-effect">
<a href="https://github.com/settings/profile" target="_blank">
<i class="icon icon-lg icon-github"></i>
Github
</a>
</li>
</ul>
</div>
</div>
</aside>
<main id="main">
<header class="top-header" id="header">
<div class="flex-row">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
<i class="icon icon-lg icon-navicon"></i>
</a>
<div class="flex-col header-title ellipsis">chentj's Blog</div>
<div class="search-wrap" id="search-wrap">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
<i class="icon icon-lg icon-chevron-left"></i>
</a>
<input type="text" id="key" class="search-input" autocomplete="off" placeholder="検索">
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
<i class="icon icon-lg icon-search"></i>
</a>
</div>
<a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
<i class="icon icon-lg icon-share-alt"></i>
</a>
</div>
</header>
<header class="content-header index-header">
<div class="container fade-scale">
<h1 class="title">chentj's Blog</h1>
<h5 class="subtitle">
Inflexible thinking, bad humor
</h5>
</div>
</header>
<div class="container body-wrap">
<ul class="post-list">
<li class="post-list-item fade">
<article id="post-nodejs微服务-1" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-11-06 13:35:25" datetime="2019-11-06T05:35:25.000Z" itemprop="datePublished">2019-11-06</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/11/06/nodejs微服务-1/">nodejs微服务</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
<a href="/2019/11/06/nodejs微服务-1/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-nodejs微服务" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-11-06 13:33:30" datetime="2019-11-06T05:33:30.000Z" itemprop="datePublished">2019-11-06</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/11/06/nodejs微服务/">nodejs微服务</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
nodejs微服务解决方案 senaca是一个nodejs微服务工具集,它赋予系统易于连续构建和更新的能力。
环境基础环境node、npm、pm2、rabbitmq、consul、mongodb
微服务工程bluebird、koa、koa-router、seneca、seneca-web、seneca-web-adpter-koa2、amqplib、winston、mongoose
...
<a href="/2019/11/06/nodejs微服务/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/nodejs/">nodejs</a></li></ul>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-什么是微服务" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-11-06 12:05:18" datetime="2019-11-06T04:05:18.426Z" itemprop="datePublished">2019-11-06</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/11/06/什么是微服务/">No title</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
title: 什么是微服务date: 2019-11-6tags: 微服务
什么是微服务1)一组小的服务(大小没有特表的标准,只要同一团队的工程师理解服务的标识一致即可)
2)独立的进程(java的tomcat,nodejs等)
3)轻量级的通信(不是soap,是http协议)
4)基于业务能力(类似用户服务,商品服务等等)
5)独立部署(迭代速度块)
6)无集中式管理(无需同一技术栈...
<a href="/2019/11/06/什么是微服务/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-nuxt经验学习" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-05-11 09:39:29" datetime="2019-05-11T01:39:29.000Z" itemprop="datePublished">2019-05-11</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/05/11/nuxt经验学习/">nuxt经验学习</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
创建项目:
vue init nuxt-community/starter-template
img
Nuxt官方文档
简单来说,Nuxt就是基于Vue的一个应用框架,采用服务端渲染...
<a href="/2019/05/11/nuxt经验学习/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/vue/">vue</a></li></ul>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-nginx知识" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-04-21 20:48:43" datetime="2019-04-21T12:48:43.000Z" itemprop="datePublished">2019-04-21</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/04/21/nginx知识/">nginx知识</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
nginx在应用程序中的作用1、解决跨域
2、请求过滤
3、配置gzip
4、负载均衡
5、静态资源服务器
nginx是一个高性能的HTTP和反向代理服务器,也是一个通用的TCP/UDP代理服务器,最初由俄罗斯人lgor Sysoev编写。
nginx现在几乎是众多大型网站的必备拘束,大多情况下,我们不需要亲自去配置它,但是了解它在应用程序中所担任的角色,以及如何解决这些问题是非常必要的...
<a href="/2019/04/21/nginx知识/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/服务器/">服务器</a></li></ul>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-JavaScript的数据类型及其检测" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-04-21 20:06:19" datetime="2019-04-21T12:06:19.000Z" itemprop="datePublished">2019-04-21</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/04/21/JavaScript的数据类型及其检测/">JavaScript的数据类型及其检测</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
[TOC]
基本数据类型1、Symbol(ES6新增,表示独一无二的值)
2、Undefined
3、Null
4、NaN
5、布尔值(Boolean)
6、字符串(String)
7、数值(Number)
引用数据类型对象(Object)=》对象,数组,函数等
区别两种类型区别1、存储位置不同
引用类型存储在栈,堆(heap)中
基本数据类型直接存储在栈(stack)中
2、访问方式不同
...
<a href="/2019/04/21/JavaScript的数据类型及其检测/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js/">js</a></li></ul>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-JS异步编程六中方案" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-04-14 22:52:55" datetime="2019-04-14T14:52:55.000Z" itemprop="datePublished">2019-04-14</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/04/14/JS异步编程六中方案/">JS异步编程六中方案</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
JavaScript语言执行环境为单线程
需排队完成任务,若有任务耗时长,会导致阻塞接下来任务,导致整个页面卡死在这个地方,其他任务无法执行。
为解决这个问题,JavaScript语言将任务的执行模式分为两种:同步和异步。
异步编程解决方案:一、回调函数回调函数是异步操作最基本的方法。例如
1ajax(url,()=>{})
但是回调函数有个致命的弱点,就是容...
<a href="/2019/04/14/JS异步编程六中方案/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js/">js</a></li></ul>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-Express相关知识" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-04-14 19:43:05" datetime="2019-04-14T11:43:05.000Z" itemprop="datePublished">2019-04-14</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/04/14/Express相关知识/">Express相关知识</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
Express
路由、中间件和模板引擎
Express是一个基于Node的一个框架,用来快速创建Web服务的一个工具,为什么要使用Express呢,因为创建Web服务如果从Node开始有很多繁琐的工作要做,而Express为你解放了很多工作,从而让你更加关注于逻辑业务开发。
举例:开发一个很简单的网站:
12345678910var http = require('http');var u...
<a href="/2019/04/14/Express相关知识/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/node-框架-express/">node 框架 express</a></li></ul>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-swig使用" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-04-14 19:42:46" datetime="2019-04-14T11:42:46.000Z" itemprop="datePublished">2019-04-14</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/04/14/swig使用/">swig使用</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
Swig 使用指南
Swig 使用指南
一、如何使用1、API1234567891011swig.init({ allowErrors: false, autoe...
<a href="/2019/04/14/swig使用/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js-模板/">js 模板</a></li></ul>
</div>
</article>
</li>
<li class="post-list-item fade">
<article id="post-代码规范,编程规范" class="article-card article-type-post" itemprop="blogPost">
<div class="post-meta">
<time class="post-time" title="2019-03-09 22:14:03" datetime="2019-03-09T14:14:03.000Z" itemprop="datePublished">2019-03-09</time>
</div>
<h3 class="post-title" itemprop="name">
<a class="post-title-link" href="/2019/03/09/代码规范,编程规范/">代码规范,编程规范</a>
</h3>
<div class="post-content" id="post-content" itemprop="postContent">
Google提出1、使用空格代替tab除了每一行的终止符序列,ASCII水平空格符(0x20)是唯一一个可以出现在源文件中任意位置的空格字符。这也意味着,tab字符不应该被使用,以及被用来控制缩进。
规范随后指出应该使用2个,而不是4个空格带实现缩进。
2、不能省略分号每个语句必须以分号结尾。不允许依赖于JS自动添加分号的功能。
尽管我不明白为什么会有人反对这个规则,但目前分号的使用问题显然...
<a href="/2019/03/09/代码规范,编程规范/" class="post-more waves-effect waves-button">
続きを読む…
</a>
</div>
<div class="post-footer">
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/js/">js</a></li></ul>
</div>
</article>
</li>
</ul>
<nav id="page-nav">
<div class="inner">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><span class="space">…</span><a class="page-number" href="/page/7/">7</a><a class="extend next" rel="next" href="/page/2/">下一页</a>
</div>
</nav>
</div>
<footer class="footer">
<div class="top">
<p>
<span id="busuanzi_container_site_uv" style="display:none">
站点总访客数:<span id="busuanzi_value_site_uv"></span>
</span>
<span id="busuanzi_container_site_pv" style="display:none">
站点总访问量:<span id="busuanzi_value_site_pv"></span>
</span>
</p>
<p>
<span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
<span>このブログの内容物は<a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.ja">クリエイティブ・コモンズ 表示 - 非営利 - 継承 4.0 国際ライセンスの下に提供されています</a></span>
</p>
</div>
<div class="bottom">
<p><span>chentj © 2015 - 2019</span>
<span>
Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
</span>
</p>
</div>
</footer>
</main>
<div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>
<div class="global-share" id="globalShare">
<ul class="reset share-icons">
<li>
<a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=https://tianjiec.top/&title=chentj's Blog&pic=https://tianjiec.top/img/header1.jpg" data-title="微博">
<i class="icon icon-weibo"></i>
</a>
</li>
<li>
<a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
<i class="icon icon-weixin"></i>
</a>
</li>
<li>
<a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=https://tianjiec.top/&title=chentj's Blog&source=���������������������̰���������ܼ�������̰����" data-title=" QQ">
<i class="icon icon-qq"></i>
</a>
</li>
<li>
<a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://tianjiec.top/" data-title=" Facebook">
<i class="icon icon-facebook"></i>
</a>
</li>
<li>
<a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=chentj's Blog&url=https://tianjiec.top/&via=https://tianjiec.top" data-title=" Twitter">
<i class="icon icon-twitter"></i>
</a>
</li>
<li>
<a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=https://tianjiec.top/" data-title=" Google+">
<i class="icon icon-google-plus"></i>
</a>
</li>
</ul>
</div>
<div class="page-modal wx-share" id="wxShare">
<a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
<p>扫一扫,分享到微信</p>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAAAAAAZai4+AAABUklEQVR42u3a0Q6DIAyFYd//pdmtyWI5p8Ula3+ujE75NBm0heuS27q1+5nv38THhxssWI1YK2xPrKfnKC8T9wUL1mRW3I0Cil9J7wsWLFj61OtCYcGC9ZsBwh0sYMGClQuac6np67E8LFgtWHpVp378Sn0LFqw/Zy2zxUGzPhBseoEFaxjLnW7jjpW79OfDgjWNpSyNxMOBW3gykltYsAawlIVJHR3fe+wLwYLVjqWUWXMhci4/hQULllvS1bn6ViFYsGC5SyP1M5vXgAVrMCuXrOoLM8ZVWLBGsvSybCXp1YNyWLAmsyrd55LYzZoPLFgDWMmtAOYU7hZ8YcGaxtKbu+HATlZzDRasRqxcSVefzt2NC7BgTWYpQa2b1lYKTLBgwVIGBTe8tumwYMFKBbuVMpO9IwkWrKYsJWhWrub+77BgwcrNm+7kfaCaBQtWT9YHEqs1/b9wsJsAAAAASUVORK5CYII=" alt="微信分享二维码">
</div>
<script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: false };
</script>
<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>
<div class="search-panel" id="search-panel">
<ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
<a href="{path}" class="waves-block waves-effect">
<div class="title ellipsis" title="{title}">{title}</div>
<div class="flex-row flex-middle">
<div class="tags ellipsis">
{tags}
</div>
<time class="flex-col time">{date}</time>
</div>
</a>
</li>
</template>
<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>
<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<script>
(function() {
var OriginTitile = document.title, titleTime;
document.addEventListener('visibilitychange', function() {
if (document.hidden) {
document.title = '死鬼去哪里了!';
clearTimeout(titleTime);
} else {
document.title = '(つェ⊂)咦!又好了!';
titleTime = setTimeout(function() {
document.title = OriginTitile;
},2000);
}
});
})();
</script>
</body>
</html>