File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -476,12 +476,12 @@ extraApiPluginInfoFinder.isJavaScriptAvailable()
476476extraApiStatsFinder .getPostWordCount ({
477477 name: ' post-metadata-name' , // 可选,未传入则统计全部文章字数总和
478478 version: ' release' | ' draft' // 可选,默认 'release'
479- });
479+ })
480480```
481481
482482``` javascript
483483// 统计全部文章已发布版本的总字数
484- extraApiStatsFinder .getPostWordCount ();
484+ extraApiStatsFinder .getPostWordCount ()
485485```
486486
487487** 参数**
@@ -541,7 +541,7 @@ extraApiStatsFinder.getPostWordCount();
541541// 传入映射形式参数
542542extraApiStatsFinder .getContentWordCount ({
543543 htmlContent: ' <p>HTML 内容</p>' // 必需,要统计字数的 HTML 内容
544- });
544+ })
545545```
546546
547547** 参数**
@@ -560,7 +560,7 @@ extraApiStatsFinder.getContentWordCount({
560560
561561``` javascript
562562// 直接传入 HTML 内容字符串进行统计
563- extraApiStatsFinder .getContentWordCount (htmlContent);
563+ extraApiStatsFinder .getContentWordCount (htmlContent)
564564```
565565
566566** 参数**
You can’t perform that action at this time.
0 commit comments