-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1372 lines (898 loc) · 54.9 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
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
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.1.1">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
<link rel="mask-icon" href="/images/logo.svg" color="#222">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<script id="hexo-configurations">
var NexT = window.NexT || {};
var CONFIG = {"hostname":"fsql.me","root":"/","scheme":"Pisces","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":true,"style":null},"back2top":{"enable":true,"sidebar":true,"scrollpercent":true},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":"valine","storage":false,"lazyload":false,"nav":{"disqusjs":{"text":"Disqus","order":-1},"valine":{"order":-2}},"activeClass":"valine"},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
</script>
<meta name="description" content="PHPer">
<meta property="og:type" content="website">
<meta property="og:title" content="FreezingTiny's Blog">
<meta property="og:url" content="https://fsql.me/">
<meta property="og:site_name" content="FreezingTiny's Blog">
<meta property="og:description" content="PHPer">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="FreezingTiny">
<meta name="twitter:card" content="summary">
<link rel="canonical" href="https://fsql.me/">
<script id="page-configurations">
// https://hexo.io/docs/variables.html
CONFIG.page = {
sidebar: "",
isHome : true,
isPost : false,
lang : 'zh-CN'
};
</script>
<title>FreezingTiny's Blog</title>
<noscript>
<style>
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-header { opacity: initial; }
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage">
<div class="container use-motion">
<div class="headband"></div>
<header class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-container">
<div class="site-nav-toggle">
<div class="toggle" aria-label="切换导航栏">
<span class="toggle-line toggle-line-first"></span>
<span class="toggle-line toggle-line-middle"></span>
<span class="toggle-line toggle-line-last"></span>
</div>
</div>
<div class="site-meta">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<h1 class="site-title">FreezingTiny's Blog</h1>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<div class="site-nav-right">
<div class="toggle popup-trigger">
<i class="fa fa-search fa-fw fa-lg"></i>
</div>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="main-menu menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>
</li>
<li class="menu-item menu-item-search">
<a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
</a>
</li>
</ul>
</nav>
<div class="search-pop-overlay">
<div class="popup search-popup">
<div class="search-header">
<span class="search-icon">
<i class="fa fa-search"></i>
</span>
<div class="search-input-container">
<input autocomplete="off" autocapitalize="off"
placeholder="搜索..." spellcheck="false"
type="search" class="search-input">
</div>
<span class="popup-btn-close">
<i class="fa fa-times-circle"></i>
</span>
</div>
<div id="search-result">
<div id="no-result">
<i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
</div>
</div>
</div>
</div>
</div>
</header>
<a href="https://github.com/fsql" class="github-corner" title="Follow me on GitHub" aria-label="Follow me on GitHub" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
<main class="main">
<div class="main-inner">
<div class="content-wrap">
<div class="content index posts-expand">
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/first-article/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/first-article/" class="post-title-link" itemprop="url">第一篇hexo文章,原来的wordpress已经全部舍弃了</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="fa fa-heart"></i>
</span>
<span class="post-meta-item-text">
<font color=7D26CD>置顶</font>
</span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2020-09-07 14:56:06" itemprop="dateCreated datePublished" datetime="2020-09-07T14:56:06+08:00">2020-09-07</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2020-09-08 16:46:28" itemprop="dateModified" datetime="2020-09-08T16:46:28+08:00">2020-09-08</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E6%9D%82%E6%96%87/" itemprop="url" rel="index"><span itemprop="name">杂文</span></a>
</span>
</span>
<span id="/first-article/" class="post-meta-item leancloud_visitors" data-flag-title="第一篇hexo文章,原来的wordpress已经全部舍弃了" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/first-article/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/first-article/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<p>原来WordPress的文章也没有需要保留的价值,所以直接舍弃了<br>第一次用hexo这种纯静态的博客,应该不会像WordPress那样一堆漏洞了吧<br>引入<del>disqus</del>(考虑到墙的问题改为Valine了)以后评论区也会干净许多</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/vue-dialog-drag/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/vue-dialog-drag/" class="post-title-link" itemprop="url">Element中dialog组建实现拖拽</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-06-16 17:12:04 / 修改时间:17:44:22" itemprop="dateCreated datePublished" datetime="2021-06-16T17:12:04+08:00">2021-06-16</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/VUE/" itemprop="url" rel="index"><span itemprop="name">VUE</span></a>
</span>
</span>
<span id="/vue-dialog-drag/" class="post-meta-item leancloud_visitors" data-flag-title="Element中dialog组建实现拖拽" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/vue-dialog-drag/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/vue-dialog-drag/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<ul>
<li><p>1.utils文件夹下创建<code>dialog.js</code>文件</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><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> Vue <span class="keyword">from</span> <span class="string">'vue'</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// v-dialogDrag: 弹窗拖拽</span></span><br><span class="line">Vue.directive(<span class="string">'dialogDrag'</span>, {</span><br><span class="line"> bind(el, binding, vnode, oldVnode) {</span><br><span class="line"> <span class="keyword">const</span> dialogHeaderEl = el.querySelector(<span class="string">'.el-dialog__header'</span>)</span><br><span class="line"> <span class="keyword">const</span> dragDom = el.querySelector(<span class="string">'.el-dialog'</span>)</span><br><span class="line"> dialogHeaderEl.style.cursor = <span class="string">'move'</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">// 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);</span></span><br><span class="line"> <span class="keyword">const</span> sty = dragDom.currentStyle || <span class="built_in">window</span>.getComputedStyle(dragDom, <span class="literal">null</span>)</span><br><span class="line"></span><br><span class="line"> dialogHeaderEl.onmousedown = <span class="function">(<span class="params">e</span>) =></span> {</span><br><span class="line"> <span class="comment">// 鼠标按下,计算当前元素距离可视区的距离</span></span><br><span class="line"> <span class="keyword">const</span> disX = e.clientX - dialogHeaderEl.offsetLeft</span><br><span class="line"> <span class="keyword">const</span> disY = e.clientY - dialogHeaderEl.offsetTop</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 获取到的值带px 正则匹配替换</span></span><br><span class="line"> <span class="keyword">let</span> styL, styT</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px</span></span><br><span class="line"> <span class="keyword">if</span> (sty.left.includes(<span class="string">'%'</span>)) {</span><br><span class="line"> styL = +<span class="built_in">document</span>.body.clientWidth * (+sty.left.replace(<span class="regexp">/\%/g</span>, <span class="string">''</span>) / <span class="number">100</span>)</span><br><span class="line"> styT = +<span class="built_in">document</span>.body.clientHeight * (+sty.top.replace(<span class="regexp">/\%/g</span>, <span class="string">''</span>) / <span class="number">100</span>)</span><br><span class="line"> } <span class="keyword">else</span> {</span><br><span class="line"> styL = +sty.left.replace(<span class="regexp">/\px/g</span>, <span class="string">''</span>)</span><br><span class="line"> styT = +sty.top.replace(<span class="regexp">/\px/g</span>, <span class="string">''</span>)</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="built_in">document</span>.onmousemove = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>{</span><br><span class="line"> <span class="comment">// 通过事件委托,计算移动的距离</span></span><br><span class="line"> <span class="keyword">const</span> l = e.clientX - disX</span><br><span class="line"> <span class="keyword">const</span> t = e.clientY - disY</span><br><span class="line"></span><br><span class="line"> <span class="comment">// 移动当前元素</span></span><br><span class="line"> dragDom.style.left = <span class="string">`<span class="subst">${l + styL}</span>px`</span></span><br><span class="line"> dragDom.style.top = <span class="string">`<span class="subst">${t + styT}</span>px`</span></span><br><span class="line"></span><br><span class="line"> <span class="comment">// 将此时的位置传出去</span></span><br><span class="line"> <span class="comment">// binding.value({x:e.pageX,y:e.pageY})</span></span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> <span class="built_in">document</span>.onmouseup = <span class="function"><span class="keyword">function</span>(<span class="params">e</span>) </span>{</span><br><span class="line"> <span class="built_in">document</span>.onmousemove = <span class="literal">null</span></span><br><span class="line"> <span class="built_in">document</span>.onmouseup = <span class="literal">null</span></span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line"> }</span><br><span class="line">})</span><br></pre></td></tr></table></figure>
</li>
<li><p>2.在<code>main.js</code>中全局引用</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> <span class="string">'./utils/dialog'</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>3.使用方法:给el-dialog 添加 v-dialog-drag属性</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><el-dialog v-dialog-drag></el-dialog></span><br></pre></td></tr></table></figure></li>
</ul>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/delete-a-large-number-of-files/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/delete-a-large-number-of-files/" class="post-title-link" itemprop="url">centos删除大量文件</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-03-15 11:03:52 / 修改时间:11:09:18" itemprop="dateCreated datePublished" datetime="2021-03-15T11:03:52+08:00">2021-03-15</time>
</span>
<span id="/delete-a-large-number-of-files/" class="post-meta-item leancloud_visitors" data-flag-title="centos删除大量文件" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/delete-a-large-number-of-files/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/delete-a-large-number-of-files/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<p>今天在查看服务器时发现磁盘使用率巨高,新加的200G云盘已经用了70%多</p>
<p>经过排查发现是crontab的输出记录,文件路径是<br><code>/var/spool/postfix/maildrop</code></p>
<p>尝试 <code>rm -rf *</code></p>
<p>结果提示 <code>Argument list too long</code></p>
<p>文件太多无法直接删掉</p>
<p>于是执行以下命令将文件10个分为一组进行删除</p>
<p><code>ls | xargs -n 10 rm -rf</code></p>
<p>耗时几十分钟,删除成功</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/eth-quantitative-transaction/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/eth-quantitative-transaction/" class="post-title-link" itemprop="url">ETH量化交易工具(支持ERC20代币)</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2021-01-11 16:53:50 / 修改时间:17:06:13" itemprop="dateCreated datePublished" datetime="2021-01-11T16:53:50+08:00">2021-01-11</time>
</span>
<span id="/eth-quantitative-transaction/" class="post-meta-item leancloud_visitors" data-flag-title="ETH量化交易工具(支持ERC20代币)" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/eth-quantitative-transaction/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/eth-quantitative-transaction/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<p>#项目起源<br>ERC20代币空投不断,朋友告诉我可以以此来薅羊毛并且有人以此获利数十万,于是这个项目就诞生了。</p>
<p>这个项目可以批量生成地址,批量交易ETH或ERC20代币</p>
<p>支持一对多、多对一、多对多交易</p>
<p>我自己试过几次,手续费有点感人,大概¥50交易一次,批量养号的话我是养不起的,如果有大佬想合作可以联系我<br>#项目地址<br><a target="_blank" rel="noopener" href="http://eth.fsql.net/">http://eth.fsql.net/</a></p>
<p>暂时没考虑开源,想使用的小伙伴可以私信我获取账号</p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/get-new-domain-loli-watch/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/get-new-domain-loli-watch/" class="post-title-link" itemprop="url">获得新域名:loli.watch</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2020-10-16 16:12:22 / 修改时间:16:32:53" itemprop="dateCreated datePublished" datetime="2020-10-16T16:12:22+08:00">2020-10-16</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/%E8%BF%90%E7%BB%B4/" itemprop="url" rel="index"><span itemprop="name">运维</span></a>
</span>
</span>
<span id="/get-new-domain-loli-watch/" class="post-meta-item leancloud_visitors" data-flag-title="获得新域名:loli.watch" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/get-new-domain-loli-watch/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/get-new-domain-loli-watch/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<h3 id="有个loli梦"><a href="#有个loli梦" class="headerlink" title="有个loli梦"></a>有个loli梦</h3><p>一直想要个loli域名,后缀是什么无所谓,当然越短越好,.com .net这类主流后缀基本不用想了。今天逛godaddy偶然发现<a target="_blank" rel="noopener" href="https://loli.watch/">loli.watch</a> 可买,首年只要$10。果断入手了</p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/get-new-domain-loli-watch/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/vue-voice-input-button/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/vue-voice-input-button/" class="post-title-link" itemprop="url">VUE语音识别</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2020-09-23 10:01:12 / 修改时间:14:52:01" itemprop="dateCreated datePublished" datetime="2020-09-23T10:01:12+08:00">2020-09-23</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/VUE/" itemprop="url" rel="index"><span itemprop="name">VUE</span></a>
</span>
</span>
<span id="/vue-voice-input-button/" class="post-meta-item leancloud_visitors" data-flag-title="VUE语音识别" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/vue-voice-input-button/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/vue-voice-input-button/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<p>在很多场景下,当我们使用手机操作复杂页面时,会非常不方便,我在写一个商城后台时遇到了这个问题。运营经常需要很晚来操作后台,而很大一部分时间都是只能用手机,于是我想到的解决方案就是<strong>语音控制</strong></p>
<p>实现结果如下:<br><video id="video" controls="" preload="none" poster="/images/vue-voice-input-button-demo.jpg"><br> <source id="mp4" src="/video/vue-voice-input-button-demo.mp4" type="video/mp4"><br></video></p>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/vue-voice-input-button/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/php-magic-methods/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/php-magic-methods/" class="post-title-link" itemprop="url">PHP魔术方法</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2020-09-09 14:19:57 / 修改时间:15:02:55" itemprop="dateCreated datePublished" datetime="2020-09-09T14:19:57+08:00">2020-09-09</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-folder"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="/categories/PHP/" itemprop="url" rel="index"><span itemprop="name">PHP</span></a>
</span>
</span>
<span id="/php-magic-methods/" class="post-meta-item leancloud_visitors" data-flag-title="PHP魔术方法" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/php-magic-methods/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/php-magic-methods/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<h1 id="PHP的魔术方法"><a href="#PHP的魔术方法" class="headerlink" title="PHP的魔术方法"></a>PHP的魔术方法</h1><p>PHP 将所有以 __(两个下划线)开头的类方法保留为魔术方法。所以在定义类方法时,除了上述魔术方法,建议不要以 __ 为前缀</p>
<h2 id="PHP的16个魔术方法"><a href="#PHP的16个魔术方法" class="headerlink" title="PHP的16个魔术方法"></a>PHP的16个魔术方法</h2><figure class="highlight php"><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><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">__construct(),类的构造函数</span><br><span class="line">__destruct(),类的析构函数</span><br><span class="line">__call(),在对象中调用一个不可访问方法时调用</span><br><span class="line">__callStatic(),用静态方式中调用一个不可访问方法时调用</span><br><span class="line">__get(),获得一个类的成员变量时调用</span><br><span class="line">__set(),设置一个类的成员变量时调用</span><br><span class="line">__isset(),当对不可访问属性调用<span class="keyword">isset</span>()或<span class="keyword">empty</span>()时调用</span><br><span class="line">__unset(),当对不可访问属性调用<span class="keyword">unset</span>()时被调用。</span><br><span class="line">__sleep(),执行serialize()时,先会调用这个函数</span><br><span class="line">__wakeup(),执行unserialize()时,先会调用这个函数</span><br><span class="line">__toString(),类被当成字符串时的回应方法</span><br><span class="line">__invoke(),调用函数的方式调用一个对象时的回应方法</span><br><span class="line">__set_state(),调用var_export()导出类时,此静态方法会被调用。</span><br><span class="line">__clone(),当对象复制完成时调用</span><br><span class="line">__autoload(),尝试加载未定义的类</span><br><span class="line">__debugInfo(),打印所需调试信息</span><br></pre></td></tr></table></figure>
<!--noindex-->
<div class="post-button">
<a class="btn" href="/php-magic-methods/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/qq-video-sign/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/qq-video-sign/" class="post-title-link" itemprop="url">腾讯视频签到增加V力值</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2020-09-08 14:17:17" itemprop="dateCreated datePublished" datetime="2020-09-08T14:17:17+08:00">2020-09-08</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar-check"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2020-09-23 09:59:32" itemprop="dateModified" datetime="2020-09-23T09:59:32+08:00">2020-09-23</time>
</span>
<span id="/qq-video-sign/" class="post-meta-item leancloud_visitors" data-flag-title="腾讯视频签到增加V力值" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-comment"></i>
</span>
<span class="post-meta-item-text">Valine:</span>
<a title="valine" href="/qq-video-sign/#valine-comments" itemprop="discussionUrl">
<span class="post-comments-count valine-comment-count" data-xid="/qq-video-sign/" itemprop="commentCount"></span>
</a>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody" >
<h1 id="QQVideoSign"><a href="#QQVideoSign" class="headerlink" title="QQVideoSign"></a>QQVideoSign</h1><p>🚀 腾讯视频好莱坞会员V力值签到。</p>
<p>代码由<a target="_blank" rel="noopener" href="https://github.com/sy-records">sy-records</a>的<a target="_blank" rel="noopener" href="https://github.com/sy-records/v-checkin/">v-checkin</a>改动而来,额外增加了4项任务的领取,需要手动完成任务才能领取。(通常我是观看60分钟会忘记领)</p>
<p>执行结果通常是这样的</p>
<img src="https://github.com/fsql/qqvidoesign/raw/master/images/Result.png" alt="执行结果" data-action="zoom" style="width: 50%">
<!--noindex-->
<div class="post-button">
<a class="btn" href="/qq-video-sign/#more" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
<link itemprop="mainEntityOfPage" href="https://fsql.me/get-douyin-video-download-url/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="/images/avatar.jpg">
<meta itemprop="name" content="FreezingTiny">
<meta itemprop="description" content="PHPer">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="FreezingTiny's Blog">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">
<a href="/get-douyin-video-download-url/" class="post-title-link" itemprop="url">抖音无水印解析</a>
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="far fa-calendar"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2020-09-08 14:03:23 / 修改时间:16:09:37" itemprop="dateCreated datePublished" datetime="2020-09-08T14:03:23+08:00">2020-09-08</time>
</span>
<span id="/get-douyin-video-download-url/" class="post-meta-item leancloud_visitors" data-flag-title="抖音无水印解析" title="阅读次数">
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="post-meta-item-text">阅读次数:</span>
<span class="leancloud-visitors-count"></span>
</span>
<span class="post-meta-item">