Repository navigation
Expand file tree
/
Copy pathmpregular.html
More file actions
897 lines (436 loc) · 33.5 KB
/
Copy pathmpregular.html
File metadata and controls
897 lines (436 loc) · 33.5 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
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
<!DOCTYPE HTML>
<html lang="zh-hans" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>微信小程序 · Regular官方指南</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<meta name="author" content="leeluolee">
<link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="performance.html" />
<link rel="prev" href="ssr.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="输入并搜索" />
</div>
<nav role="navigation">
<ul class="summary">
<li>
<a href="https://github.com/regularjs/regular" target="_blank" class="custom-link">Github</a>
</li>
<li class="divider"></li>
<li class="chapter " data-level="1.1" data-path="../">
<a href="../">
️介绍
</a>
<ul class="articles">
<li class="chapter " data-level="1.1.1" data-path="../intro/what.html">
<a href="../intro/what.html">
Regular是什么
</a>
</li>
<li class="chapter " data-level="1.1.2" data-path="../intro/hello.html">
<a href="../intro/hello.html">
️你好,Regular
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.2" data-path="../basic/">
<a href="../basic/">
基础
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="../basic/component/">
<a href="../basic/component/">
️组件
</a>
</li>
<li class="chapter " data-level="1.2.2" data-path="../basic/interpolation.html">
<a href="../basic/interpolation.html">
️插值
</a>
</li>
<li class="chapter " data-level="1.2.3" data-path="../basic/event.html">
<a href="../basic/event.html">
️事件
</a>
</li>
<li class="chapter " data-level="1.2.4" data-path="../basic/statement/">
<a href="../basic/statement/">
️语句
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.4.1" data-path="../basic/statement/list.html">
<a href="../basic/statement/list.html">
️列表渲染 - list
</a>
</li>
<li class="chapter " data-level="1.2.4.2" data-path="../basic/statement/if.html">
<a href="../basic/statement/if.html">
️条件渲染 - if
</a>
</li>
<li class="chapter " data-level="1.2.4.3" data-path="../basic/statement/include.html">
<a href="../basic/statement/include.html">
️结构引入 - include
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.2.5" data-path="../reference/expression.html">
<a href="../reference/expression.html">
表达式
</a>
</li>
<li class="chapter " data-level="1.2.6" data-path="../basic/data-binding.html">
<a href="../basic/data-binding.html">
数据监听
</a>
</li>
<li class="chapter " data-level="1.2.7" data-path="../basic/filter.html">
<a href="../basic/filter.html">
计算字段与过滤器
</a>
</li>
<li class="chapter " data-level="1.2.8" data-path="../basic/directive.html">
<a href="../basic/directive.html">
️指令
</a>
</li>
<li class="chapter " data-level="1.2.9" data-path="../basic/animation.html">
<a href="../basic/animation.html">
️动画
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="../advanced/">
<a href="../advanced/">
深入组件
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" data-path="../advanced/modular.html">
<a href="../advanced/modular.html">
继承与模块化
</a>
</li>
<li class="chapter " data-level="1.3.2" data-path="../advanced/composite.html">
<a href="../advanced/composite.html">
️组合 - 结构复用
</a>
</li>
<li class="chapter " data-level="1.3.3" data-path="../advanced/modify.html">
<a href="../advanced/modify.html">
️动态注入
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="./">
<a href="./">
专题
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="template.html">
<a href="template.html">
模板管理
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1.1" >
<a target="_blank" href="https://github.com/regularjs/regular-loader">
单文件组件 - regular-loader
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4.2" >
<a target="_blank" href="https://regularjs.github.io/regular-state/">
️单页系统
</a>
</li>
<li class="chapter " data-level="1.4.3" data-path="ssr.html">
<a href="ssr.html">
服务端渲染
</a>
</li>
<li class="chapter active" data-level="1.4.4" data-path="mpregular.html">
<a href="mpregular.html">
微信小程序
</a>
</li>
<li class="chapter " data-level="1.4.5" data-path="performance.html">
<a href="performance.html">
性能指引
</a>
</li>
<li class="chapter " data-level="1.4.6" data-path="communication.html">
<a href="communication.html">
️跨组件通信
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.6.1" data-path="redux.md">
<span>
与redux结合
</a>
</li>
<li class="chapter " data-level="1.4.6.2" data-path="rx.md">
<span>
与Rx结合(ing...)
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4.7" data-path="todomvc.html">
<a href="todomvc.html">
50行代码的todomvc
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.5" data-path="../reference/">
<a href="../reference/">
索引手册
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="../reference/api.html">
<a href="../reference/api.html">
API
</a>
</li>
<li class="chapter " data-level="1.5.2" data-path="../reference/styleguide.html">
<a href="../reference/styleguide.html">
风格指南
</a>
</li>
<li class="chapter " data-level="1.5.3" data-path="../reference/directive.html">
<a href="../reference/directive.html">
✔内建指令
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.6" data-path="../faq/">
<a href="../faq/">
FAQ
</a>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
本书使用 GitBook 发布
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href=".." >微信小程序</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div class="search-plus" id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><span class="title-icon "></span><a href="#regular-在微信小程序中的使用"><b> </b>Regular 在微信小程序中的使用</a></li><ul><li><span class="title-icon "></span><a href="#理论基础"><b>1. </b>理论基础</a></li><ul><li><span class="title-icon "></span><a href="#实现思路"><b>1.1. </b>实现思路</a></li><li><span class="title-icon "></span><a href="#为什么设计-holders,而不传递真正的数据呢?"><b>1.2. </b>为什么设计 holders,而不传递真正的数据呢?</a></li><li><span class="title-icon "></span><a href="#总结"><b>1.3. </b>总结</a></li></ul><li><span class="title-icon "></span><a href="#和业界框架的对比"><b>2. </b>和业界框架的对比</a></li><li><span class="title-icon "></span><a href="#感谢"><b>3. </b>感谢</a></li></ul></ul></div><a href="#regular-在微信小程序中的使用" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="regular-在微信小程序中的使用"><a name="regular-在微信小程序中的使用" class="anchor-navigation-ex-anchor" href="#regular-在微信小程序中的使用"><i class="fa fa-link" aria-hidden="true"></i></a> Regular 在微信小程序中的使用</h1>
<p>随着最近一段时间微信小程序的大火,很多公司开始重视起了微信小程序上面的开发投入,甚至出现了很多类似小程序的平台,比如快应用、百度小程序、支付宝小程序等等</p>
<p>(注:下文提到的小程序皆指微信小程序)</p>
<h2 id="理论基础"><a name="理论基础" class="anchor-navigation-ex-anchor" href="#理论基础"><i class="fa fa-link" aria-hidden="true"></i></a>1. 理论基础</h2>
<p>为什么 Regular 代码可以跑在小程序平台上?</p>
<p>让我们先来看下微信小程序的整体架构</p>
<pre><code>+--------------+ +---------------+
| View | | App Service |
+----^---+-----+ +-----^---------+
| | | |
data | | event event | | data
| | | |
+----+---v----------------+---v-----+
| JSBridge |
+-----------------------------------+
</code></pre><p>View 对应视图层,App Service 对应我们的逻辑层</p>
<p>View 和 AppService 分别跑在两个线程中,通过 JSBridge 进行数据和事件的通信</p>
<h3 id="实现思路"><a name="实现思路" class="anchor-navigation-ex-anchor" href="#实现思路"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. 实现思路</h3>
<p>举个例子(伪代码):</p>
<pre><code class="lang-html"><span class="hljs-tag"><<span class="hljs-name">component</span>
<span class="hljs-attr">bindtap</span>=<span class="hljs-string">"proxyEvent"</span>
<span class="hljs-attr">data-cid</span>=<span class="hljs-string">"component-id"</span>
<span class="hljs-attr">data-eid</span>=<span class="hljs-string">"event-id"</span>
></span>
Hello {{ __holders[ 'holder-id' ] }}
<span class="hljs-tag"></<span class="hljs-name">component</span>></span>
</code></pre>
<pre><code class="lang-js"><span class="hljs-keyword">const</span> Component = Regular.extend( {
config() {
<span class="hljs-keyword">this</span>.data.name = <span class="hljs-string">'world'</span>
},
onClick() {
<span class="hljs-built_in">console</span>.log( <span class="hljs-string">'clicked'</span> )
}
} )
<span class="hljs-keyword">const</span> vm = <span class="hljs-keyword">new</span> Component()
</code></pre>
<ol>
<li><p>数据填充</p>
<p>只要通过一定规则拿到 <code>holder-id</code> 标识,就可以将 <code>name</code> 填充到模板的对应位置</p>
</li>
<li><p>事件处理</p>
<p>当 tap 触发时,会先执行 proxyEvent,mpregular 会在 proxyEvent 中通过 <code>component-id</code> 找到对应的 vm( Regular 实例 ),再通过 <code>event-id</code> 找到真正的事件处理函数 onClick,然后执行</p>
</li>
</ol>
<h3 id="为什么设计-holders,而不传递真正的数据呢?"><a name="为什么设计-holders,而不传递真正的数据呢?" class="anchor-navigation-ex-anchor" href="#为什么设计-holders,而不传递真正的数据呢?"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. 为什么设计 holders,而不传递真正的数据呢?</h3>
<p>我们先来看下 holders 是长什么样子的</p>
<pre><code class="lang-js">{
<span class="hljs-string">"0"</span>: ...,
<span class="hljs-string">"1"</span>: ...,
<span class="hljs-string">"2-0"</span>: ...,
<span class="hljs-string">"2-1"</span>: ...
}
</code></pre>
<p>是一种扁平的结构</p>
<p>虽然这么看 holders 感觉平平无奇,但这其实是 mpregular 中最重要的一个设计</p>
<ul>
<li><p>全量的复杂表达式支持</p>
<p>借助 holders,我们实现了 Regular 复杂表达式的全量支持。由于逻辑层提前将所有数据计算并剥离出来,放到了一个扁平的数据结构中,<strong>所以我们不再需要 小程序视图层 提供这些复杂表达式特性的支持,完全摆脱了小程序本身的模板语法限制</strong>,现在的 View 只会被用来做纯粹的渲染</p>
</li>
<li><p>更高效的视图渲染</p>
<p>根据我们的实践,<strong>当调用小程序的 setData 时,如果 View 层接收的数据量过大,会导致渲染时的明显卡顿</strong>,原因可能是 View 层 diff 的数据量过大导致,在传递数据过程中有一个大列表带了很多冗余的数据过去,而这点通过警告开发者不要这么做,是很难保证的,后端经常会传输一些冗余字段到前端,比如一个数组中真正用于渲染的其实只是部分字段,如果每次都是人工代码干预的方式,过滤模板真正用到的字段,代码将会很难维护,针对这块,mpregular 内部会在 setData 前把用于模板渲染的数据全部抽离到 holders 上,每个数据坑位都能通过某个 id 拿到自己数据,View 的 diff 也只需要在一层扁平结构上进行,可以保证更高效的更新和更好的渲染表现,在框架层面解决了这个问题,用食堂大叔的话说就是<strong>吃多少拿多少</strong></p>
</li>
</ul>
<h3 id="总结"><a name="总结" class="anchor-navigation-ex-anchor" href="#总结"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. 总结</h3>
<p>通过静态分析 Regular 模板,提前将 <strong>数据坑位查找规则</strong> 和 <strong>事件处理函数查找规则</strong> 在构建阶段生成到 wxml 中,到了运行时阶段,小程序的视图层和逻辑层就可以无缝衔接起来</p>
<h2 id="和业界框架的对比"><a name="和业界框架的对比" class="anchor-navigation-ex-anchor" href="#和业界框架的对比"><i class="fa fa-link" aria-hidden="true"></i></a>2. 和业界框架的对比</h2>
<table>
<thead>
<tr>
<th>特性</th>
<th style="text-align:right">小程序</th>
<th style="text-align:center">mpvue</th>
<th style="text-align:center">mpregular</th>
</tr>
</thead>
<tbody>
<tr>
<td>模板语法规范</td>
<td style="text-align:right">原生小程序</td>
<td style="text-align:center">Vue 模板语法</td>
<td style="text-align:center">Regular 模板语法</td>
</tr>
<tr>
<td>组件化支持</td>
<td style="text-align:right">小程序组件规范</td>
<td style="text-align:center">Vue 组件</td>
<td style="text-align:center">Regular 组件</td>
</tr>
<tr>
<td>computed 计算属性</td>
<td style="text-align:right">x</td>
<td style="text-align:center">o</td>
<td style="text-align:center">o</td>
</tr>
<tr>
<td>model 双向绑定</td>
<td style="text-align:right">x</td>
<td style="text-align:center">o</td>
<td style="text-align:center">o</td>
</tr>
<tr>
<td>slot 插槽</td>
<td style="text-align:right">x</td>
<td style="text-align:center">x</td>
<td style="text-align:center">o</td>
</tr>
<tr>
<td>filter 过滤器</td>
<td style="text-align:right">x</td>
<td style="text-align:center">x</td>
<td style="text-align:center">o</td>
</tr>
<tr>
<td>html 富文本</td>
<td style="text-align:right">x</td>
<td style="text-align:center">x</td>
<td style="text-align:center">o</td>
</tr>
<tr>
<td>复杂表达式插值</td>
<td style="text-align:right">x</td>
<td style="text-align:center">x</td>
<td style="text-align:center">o</td>
</tr>
<tr>
<td>小程序分包</td>
<td style="text-align:right">o</td>
<td style="text-align:center">x</td>
<td style="text-align:center">o</td>
</tr>
</tbody>
</table>
<blockquote>
<p>目前 mpvue 的 slot 支持还存在一定问题</p>
<p>上述表格的结果统计于 2018-8-17,如果数据过时,欢迎在 guide 仓库的 issue 中指出</p>
</blockquote>
<h2 id="感谢"><a name="感谢" class="anchor-navigation-ex-anchor" href="#感谢"><i class="fa fa-link" aria-hidden="true"></i></a>3. 感谢</h2>
<p>mpvue 的实现思路给了 mpregular 很多的灵感,在此表示诚挚的感谢!</p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="ssr.html" class="navigation navigation-prev " aria-label="Previous page: 服务端渲染">
<i class="fa fa-angle-left"></i>
</a>
<a href="performance.html" class="navigation navigation-next " aria-label="Next page: 性能指引">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"微信小程序","level":"1.4.4","depth":2,"next":{"title":"性能指引","level":"1.4.5","depth":2,"path":"topic/performance.md","ref":"./topic/performance.md","articles":[]},"previous":{"title":"服务端渲染","level":"1.4.3","depth":2,"path":"topic/ssr.md","ref":"./topic/ssr.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","splitter","-lunr","-search","-sharing","search-plus","expandable-chapters-small","anchor-navigation-ex","force-http"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"splitter":{},"force-http":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":false,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":true},"expandable-chapters-small":{},"edit-link":{"label":"编辑当前页","base":"https://github.com/regularjs/guide/edit/master/"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"search-plus":{}},"theme":"default","author":"leeluolee","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Regular官方指南","language":"zh-hans","links":{"sidebar":{"Github":"https://github.com/regularjs/regular"}},"gitbook":"3.2.3","description":"Regular官方指南"},"file":{"path":"topic/mpregular.md","mtime":"2018-08-20T07:57:49.406Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-08-23T07:40:58.484Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
<script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
<script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
<script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
<script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
<script src="../gitbook/gitbook-plugin-force-http/test.js"></script>
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>