feat: reset path

This commit is contained in:
tackchen 2020-12-10 10:27:57 +08:00
parent 46e2c7932b
commit 7964ae01a9
28 changed files with 438 additions and 437 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{635:function(t,e,a){"use strict";a.r(e);var i=a(21),c=Object(i.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h2",{attrs:{id:"_1-介绍"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[t._v("#")]),t._v(" 1 介绍")]),t._v(" "),a("p",[t._v("cnchar在2.2.0加入了成语功能,启用该功能需要安装 "),a("code",[t._v("cnchar-idiom")]),t._v(" 功能库该库可以独立于cnchar主库运行")]),t._v(" "),a("p",[t._v("使用方式如下:")]),t._v(" "),a("div",[a("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.idiom(text:string, ...idiomArgs: Array<idiomArg>):Array<string>;\n ")])],1),t._v(" "),a("p",[t._v("看一个具体例子")]),t._v(" "),a("div",[a("codebox",{attrs:{id:"idiom",fold:!0}})],1),t._v(" "),a("p",[t._v("使用cdn引用时会在window对向上暴露 "),a("code",[t._v("CncharIdiom")]),t._v(" 对象")]),t._v(" "),a("h2",{attrs:{id:"_2-idiom-参数"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_2-idiom-参数"}},[t._v("#")]),t._v(" 2. idiom 参数")]),t._v(" "),a("p",[t._v("参数调用如下value表示查询对象可以试拼音汉字笔画数所有 arg 参数都是可选的")]),t._v(" "),a("div",[a("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.idiom(value,arg1,arg2,...);\n ")])],1),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("参数")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("作用")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("是否默认")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("依赖库")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("备注")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("char")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("根据汉字查询成语")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("是")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("默认值无需调用")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("stroke")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("根据笔画数查询成语")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("优先级高于char")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("spell")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("根据拼音查询成语")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("优先级高于stroke")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("tone")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("启用拼音音调查询")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("仅在spell模式下生效")])])])]),t._v(" "),a("p",[t._v("注:优先级 "),a("code",[t._v("spell")]),t._v(" > "),a("code",[t._v("stroke")]),t._v(" > "),a("code",[t._v("char")])]),t._v(" "),a("h2",{attrs:{id:"_3-实例"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-实例"}},[t._v("#")]),t._v(" 3. 实例")]),t._v(" "),a("p",[t._v("该库为cnchar扩展了成语功能")]),t._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[t._v("\ncnchar.idiom(['五', '', '十', '']) // ['五风十雨', '五光十色']\ncnchar.idiom([4, 6, 2, 6], 'stroke') // ['五光十色']\ncnchar.idiom('shang', 'spell') // ['伤风败化', '伤风败俗', ... ]\ncnchar.idiom('shang4', 'spell', 'tone') // ['伤风败化', '伤风败俗', ... ]\n ")])],1)])}),[],!1,null,null,null);e.default=c.exports}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[12],{632:function(t,e,a){"use strict";a.r(e);var i=a(21),c=Object(i.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h2",{attrs:{id:"_1-介绍"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[t._v("#")]),t._v(" 1 介绍")]),t._v(" "),a("p",[t._v("cnchar在2.2.0加入了成语功能,启用该功能需要安装 "),a("code",[t._v("cnchar-idiom")]),t._v(" 功能库该库可以独立于cnchar主库运行")]),t._v(" "),a("p",[t._v("使用方式如下:")]),t._v(" "),a("div",[a("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.idiom(text:string, ...idiomArgs: Array<idiomArg>):Array<string>;\n ")])],1),t._v(" "),a("p",[t._v("看一个具体例子")]),t._v(" "),a("div",[a("codebox",{attrs:{id:"idiom",fold:!0}})],1),t._v(" "),a("p",[t._v("使用cdn引用时会在window对向上暴露 "),a("code",[t._v("CncharIdiom")]),t._v(" 对象")]),t._v(" "),a("h2",{attrs:{id:"_2-idiom-参数"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_2-idiom-参数"}},[t._v("#")]),t._v(" 2. idiom 参数")]),t._v(" "),a("p",[t._v("参数调用如下value表示查询对象可以试拼音汉字笔画数所有 arg 参数都是可选的")]),t._v(" "),a("div",[a("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.idiom(value,arg1,arg2,...);\n ")])],1),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"center"}},[t._v("参数")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("作用")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("是否默认")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("依赖库")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("备注")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("char")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("根据汉字查询成语")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("是")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("默认值无需调用")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("stroke")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("根据笔画数查询成语")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("优先级高于char")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("spell")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("根据拼音查询成语")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("优先级高于stroke")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"center"}},[t._v("tone")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("启用拼音音调查询")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("仅在spell模式下生效")])])])]),t._v(" "),a("p",[t._v("注:优先级 "),a("code",[t._v("spell")]),t._v(" > "),a("code",[t._v("stroke")]),t._v(" > "),a("code",[t._v("char")])]),t._v(" "),a("h2",{attrs:{id:"_3-实例"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-实例"}},[t._v("#")]),t._v(" 3. 实例")]),t._v(" "),a("p",[t._v("该库为cnchar扩展了成语功能")]),t._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[t._v("\ncnchar.idiom(['五', '', '十', '']) // ['五风十雨', '五光十色']\ncnchar.idiom([4, 6, 2, 6], 'stroke') // ['五光十色']\ncnchar.idiom('shang', 'spell') // ['伤风败化', '伤风败俗', ... ]\ncnchar.idiom('shang4', 'spell', 'tone') // ['伤风败化', '伤风败俗', ... ]\n ")])],1)])}),[],!1,null,null,null);e.default=c.exports}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{633:function(t,r,n){"use strict";n.r(r);var a=n(21),c=Object(a.a)({},(function(){var t=this,r=t.$createElement,n=t._self._c||r;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h2",{attrs:{id:"_1-介绍"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[t._v("#")]),t._v(" 1. 介绍")]),t._v(" "),n("p",[n("code",[t._v("cnchar-poly")]),t._v(" 库是用于支持多音词的库该库本身并不提供新的api")]),t._v(" "),n("p",[t._v("引入该库之后,"),n("code",[t._v("cnchar.spell()")]),t._v(" 方法才会支持多音词,否则对于多音字会返回默认读音")]),t._v(" "),n("p",[t._v("npm安装")]),t._v(" "),n("div",[n("highlight-code",[t._v("\nnpm i cnchar-poly\n ")])],1),t._v(" "),n("p",[t._v("cdn使用")]),t._v(" "),n("div",[n("highlight-code",{attrs:{lang:"html"}},[t._v('\n<script src="https://cdn.jsdelivr.net/npm/cnchar-poly/cnchar.poly.min.js"><\/script>\n ')])],1),t._v(" "),n("p",[t._v("使用")]),t._v(" "),n("div",[n("highlight-code",{attrs:{lang:"javascript"}},[t._v("\nimport cnchar from 'cnchar';\nimport poly from 'cnchar-poly';\ncnchar.use(poly); // use 在浏览器环境中非必须\n ")])],1),t._v(" "),n("h2",{attrs:{id:"_2-实例"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_2-实例"}},[t._v("#")]),t._v(" 2. 实例")]),t._v(" "),n("p",[t._v("以下演示几个多音词的例子")]),t._v(" "),n("div",[n("codebox",{attrs:{id:"poly"}})],1),t._v(" "),n("p",[t._v("由于多音词依赖分词与词库且cnchar是一个静态的js库所以可能会有诸多不准确的读音")]),t._v(" "),n("p",[t._v("如果遇到不准缺的多音词,欢迎提"),n("a",{attrs:{href:"https://github.com/theajack/cnchar/issues/new",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue或pr"),n("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=c.exports}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{634:function(t,r,n){"use strict";n.r(r);var a=n(21),c=Object(a.a)({},(function(){var t=this,r=t.$createElement,n=t._self._c||r;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h2",{attrs:{id:"_1-介绍"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[t._v("#")]),t._v(" 1. 介绍")]),t._v(" "),n("p",[n("code",[t._v("cnchar-poly")]),t._v(" 库是用于支持多音词的库该库本身并不提供新的api")]),t._v(" "),n("p",[t._v("引入该库之后,"),n("code",[t._v("cnchar.spell()")]),t._v(" 方法才会支持多音词,否则对于多音字会返回默认读音")]),t._v(" "),n("p",[t._v("npm安装")]),t._v(" "),n("div",[n("highlight-code",[t._v("\nnpm i cnchar-poly\n ")])],1),t._v(" "),n("p",[t._v("cdn使用")]),t._v(" "),n("div",[n("highlight-code",{attrs:{lang:"html"}},[t._v('\n<script src="https://cdn.jsdelivr.net/npm/cnchar-poly/cnchar.poly.min.js"><\/script>\n ')])],1),t._v(" "),n("p",[t._v("使用")]),t._v(" "),n("div",[n("highlight-code",{attrs:{lang:"javascript"}},[t._v("\nimport cnchar from 'cnchar';\nimport poly from 'cnchar-poly';\ncnchar.use(poly); // use 在浏览器环境中非必须\n ")])],1),t._v(" "),n("h2",{attrs:{id:"_2-实例"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_2-实例"}},[t._v("#")]),t._v(" 2. 实例")]),t._v(" "),n("p",[t._v("以下演示几个多音词的例子")]),t._v(" "),n("div",[n("codebox",{attrs:{id:"poly"}})],1),t._v(" "),n("p",[t._v("由于多音词依赖分词与词库且cnchar是一个静态的js库所以可能会有诸多不准确的读音")]),t._v(" "),n("p",[t._v("如果遇到不准缺的多音词,欢迎提"),n("a",{attrs:{href:"https://github.com/theajack/cnchar/issues/new",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue或pr"),n("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=c.exports}}]);

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{634:function(t,a,r){"use strict";r.r(a);var e=r(21),c=Object(e.a)({},(function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h2",{attrs:{id:"_1-介绍"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[t._v("#")]),t._v(" 1. 介绍")]),t._v(" "),r("p",[t._v("cnchar在2.2.5加入了偏旁部首功能,启用该功能需要安装 "),r("code",[t._v("cnchar-radical")]),t._v(" 功能库该库可以独立于cnchar主库运行")]),t._v(" "),r("p",[t._v("感谢 "),r("code",[t._v("kewell-tsao")]),t._v(" 提供的 pr")]),t._v(" "),r("p",[t._v("使用方式如下:")]),t._v(" "),r("div",[r("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.radical(text:string | Array<string>, ...radicalArgs: Array<radicalArg>): string | Array<string>;\n ")])],1),t._v(" "),r("p",[t._v("看一个具体例子")]),t._v(" "),r("div",[r("codebox",{attrs:{id:"radical"}})],1),t._v(" "),r("p",[t._v("使用cdn引用时会在window对向上暴露 "),r("code",[t._v("CncharRadical")]),t._v(" 对象")]),t._v(" "),r("h2",{attrs:{id:"_2-radical-参数"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#_2-radical-参数"}},[t._v("#")]),t._v(" 2. radical 参数")]),t._v(" "),r("p",[t._v("参数调用如下value表示需要查询偏旁的汉字可以是字符串或数组")]),t._v(" "),r("div",[r("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.radical(value,arg1,arg2,...);\n ")])],1),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"center"}},[t._v("参数")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("作用")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("是否默认")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("依赖库")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("备注")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"center"}},[t._v("array")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("是否返回数组")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("当传入为数组时默认返回数组")])])])]),t._v(" "),r("h2",{attrs:{id:"_3-实例"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#_3-实例"}},[t._v("#")]),t._v(" 3. 实例")]),t._v(" "),r("p",[t._v("该库为cnchar扩展了偏旁部首功能")]),t._v(" "),r("div",[r("highlight-code",{attrs:{lang:"javascript"}},[t._v('\ncnchar.radical(\'你\'); // "亻",\ncnchar.radical(\'你好呀\'); // "亻女口"\ncnchar.radical(\'你好呀\', \'array\'); // ["亻", "女", "口"]\ncnchar.radical(["你", "好", "呀"]); // ["亻", "女", "口"]\n ')])],1)])}),[],!1,null,null,null);a.default=c.exports}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{636:function(t,a,r){"use strict";r.r(a);var e=r(21),c=Object(e.a)({},(function(){var t=this,a=t.$createElement,r=t._self._c||a;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h2",{attrs:{id:"_1-介绍"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[t._v("#")]),t._v(" 1. 介绍")]),t._v(" "),r("p",[t._v("cnchar在2.2.5加入了偏旁部首功能,启用该功能需要安装 "),r("code",[t._v("cnchar-radical")]),t._v(" 功能库该库可以独立于cnchar主库运行")]),t._v(" "),r("p",[t._v("感谢 "),r("code",[t._v("kewell-tsao")]),t._v(" 提供的 pr")]),t._v(" "),r("p",[t._v("使用方式如下:")]),t._v(" "),r("div",[r("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.radical(text:string | Array<string>, ...radicalArgs: Array<radicalArg>): string | Array<string>;\n ")])],1),t._v(" "),r("p",[t._v("看一个具体例子")]),t._v(" "),r("div",[r("codebox",{attrs:{id:"radical"}})],1),t._v(" "),r("p",[t._v("使用cdn引用时会在window对向上暴露 "),r("code",[t._v("CncharRadical")]),t._v(" 对象")]),t._v(" "),r("h2",{attrs:{id:"_2-radical-参数"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#_2-radical-参数"}},[t._v("#")]),t._v(" 2. radical 参数")]),t._v(" "),r("p",[t._v("参数调用如下value表示需要查询偏旁的汉字可以是字符串或数组")]),t._v(" "),r("div",[r("highlight-code",{attrs:{lang:"typescript"}},[t._v("\ncnchar.radical(value,arg1,arg2,...);\n ")])],1),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"center"}},[t._v("参数")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("作用")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("是否默认")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("依赖库")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("备注")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"center"}},[t._v("array")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("是否返回数组")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("否")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("--")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("当传入为数组时默认返回数组")])])])]),t._v(" "),r("h2",{attrs:{id:"_3-实例"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#_3-实例"}},[t._v("#")]),t._v(" 3. 实例")]),t._v(" "),r("p",[t._v("该库为cnchar扩展了偏旁部首功能")]),t._v(" "),r("div",[r("highlight-code",{attrs:{lang:"javascript"}},[t._v('\ncnchar.radical(\'你\'); // "亻",\ncnchar.radical(\'你好呀\'); // "亻女口"\ncnchar.radical(\'你好呀\', \'array\'); // ["亻", "女", "口"]\ncnchar.radical(["你", "好", "呀"]); // ["亻", "女", "口"]\n ')])],1)])}),[],!1,null,null,null);a.default=c.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/9.b0989f22.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/9.cad83506.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link router-link-exact-active router-link-active"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link router-link-exact-active router-link-active">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link router-link-exact-active router-link-active"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link router-link-exact-active router-link-active">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,7 +76,7 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="active sidebar-link">cnchar</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/cnchar.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/cnchar.html#_2-spell-" class="sidebar-link">2. spell </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/cnchar.html#_3-stroke-" class="sidebar-link">3. stroke </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/cnchar.html#_4-" class="sidebar-link">4. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/cnchar.html#_5-" class="sidebar-link">5. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/cnchar.html#_6-api" class="sidebar-link">6. api</a></li></ul></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar <code></code> <code></code> </p> <p> <code></code>, <code></code>, <code></code> </p> <p>ts<a href="https://github.com/theajack/cnchar/blob/master/src/main/index.d.ts" target="_blank" rel="noopener noreferrer">cnchar.d.ts<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <h2 id="_2-spell-"><a href="#_2-spell-" class="header-anchor">#</a> 2. spell </h2> <p>spell </p> <h3 id="_2-1-api使"><a href="#_2-1-api使" class="header-anchor">#</a> 2.1. api使</h3> <p>api arg </p> <div><pre><code class="hljs javascript">cnchar.spell(string,arg1,arg2,...); <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="active sidebar-link">cnchar</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/cnchar.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/cnchar.html#_2-spell-" class="sidebar-link">2. spell </a></li><li class="sidebar-sub-header"><a href="/doc/cnchar.html#_3-stroke-" class="sidebar-link">3. stroke </a></li><li class="sidebar-sub-header"><a href="/doc/cnchar.html#_4-" class="sidebar-link">4. </a></li><li class="sidebar-sub-header"><a href="/doc/cnchar.html#_5-" class="sidebar-link">5. </a></li><li class="sidebar-sub-header"><a href="/doc/cnchar.html#_6-api" class="sidebar-link">6. api</a></li></ul></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar <code></code> <code></code> </p> <p> <code></code>, <code></code>, <code></code> </p> <p>ts<a href="https://github.com/theajack/cnchar/blob/master/src/main/index.d.ts" target="_blank" rel="noopener noreferrer">cnchar.d.ts<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <h2 id="_2-spell-"><a href="#_2-spell-" class="header-anchor">#</a> 2. spell </h2> <p>spell </p> <h3 id="_2-1-api使"><a href="#_2-1-api使" class="header-anchor">#</a> 2.1. api使</h3> <p>api arg </p> <div><pre><code class="hljs javascript">cnchar.spell(string,arg1,arg2,...);
string.spell(arg1,arg2,...); <span class="hljs-comment">// string prototype 调用</span></code></pre></div> <p>以下是几个简单的例子:</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>spell</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> string.spell(arg1,arg2,...); <span class="hljs-comment">// string prototype 调用</span></code></pre></div> <p>以下是几个简单的例子:</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>spell</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_2-2-"><a href="#_2-2-" class="header-anchor">#</a> 2.2. </h3> <p>arg </p> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">array</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">first</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">up</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">low</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"> up </td></tr> <tr><td style="text-align:center;">poly</td> <td style="text-align:center;">使</td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">tone</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">simple</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;">使 cnchar-trad </td></tr></tbody></table> <h2 id="_3-stroke-"><a href="#_3-stroke-" class="header-anchor">#</a> 3. stroke </h2> <h3 id="_2-1-api使-2"><a href="#_2-1-api使-2" class="header-anchor">#</a> 2.1. api使</h3> <p>api arg </p> <div><pre><code class="hljs javascript">cnchar.stroke(string,arg1,arg2,...); Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_2-2-"><a href="#_2-2-" class="header-anchor">#</a> 2.2. </h3> <p>arg </p> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">array</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">first</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">up</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">low</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"> up </td></tr> <tr><td style="text-align:center;">poly</td> <td style="text-align:center;">使</td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">tone</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">simple</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;">使 cnchar-trad </td></tr></tbody></table> <h2 id="_3-stroke-"><a href="#_3-stroke-" class="header-anchor">#</a> 3. stroke </h2> <h3 id="_2-1-api使-2"><a href="#_2-1-api使-2" class="header-anchor">#</a> 2.1. api使</h3> <p>api arg </p> <div><pre><code class="hljs javascript">cnchar.stroke(string,arg1,arg2,...);
string.stroke(arg1,arg2,...); <span class="hljs-comment">// string prototype 调用</span></code></pre></div> <p>以下是几个简单的例子:</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>stroke</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> string.stroke(arg1,arg2,...); <span class="hljs-comment">// string prototype 调用</span></code></pre></div> <p>以下是几个简单的例子:</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>stroke</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
@ -95,11 +95,11 @@ cnchar.use(poly, order, trad); <span class="hljs-comment">// 参数顺序无关
<span class="hljs-keyword">import</span> <span class="hljs-string">'cnchar-draw'</span>;</code></pre></div> <h3 id="_6-2-type"><a href="#_6-2-type" class="header-anchor">#</a> 6.2 .type</h3> <p>type <code>spell</code> <code>stroke</code> <code>orderToWord</code> <code>spellToWord</code><code>strokeToWord</code> </p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>type</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> <span class="hljs-keyword">import</span> <span class="hljs-string">'cnchar-draw'</span>;</code></pre></div> <h3 id="_6-2-type"><a href="#_6-2-type" class="header-anchor">#</a> 6.2 .type</h3> <p>type <code>spell</code> <code>stroke</code> <code>orderToWord</code> <code>spellToWord</code><code>strokeToWord</code> </p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>type</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_6-3-check"><a href="#_6-3-check" class="header-anchor">#</a> 6.3 .check</h3> <p> true</p> <p>cnchar <code>spell</code> <code>stroke</code> <code>·</code><code></code><code></code></p> <div><pre><code class="hljs javascript">cnchar.check = <span class="hljs-literal">false</span>; <span class="hljs-comment">// </span></code></pre></div> <h3 id="_6-4-version"><a href="#_6-4-version" class="header-anchor">#</a> 6.4 .version</h3> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>version</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_6-3-check"><a href="#_6-3-check" class="header-anchor">#</a> 6.3 .check</h3> <p> true</p> <p>cnchar <code>spell</code> <code>stroke</code> <code>·</code><code></code><code></code></p> <div><pre><code class="hljs javascript">cnchar.check = <span class="hljs-literal">false</span>; <span class="hljs-comment">// </span></code></pre></div> <h3 id="_6-4-version"><a href="#_6-4-version" class="header-anchor">#</a> 6.4 .version</h3> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>version</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_6-5-plugins"><a href="#_6-5-plugins" class="header-anchor">#</a> 6.5 .plugins</h3> <p>使 <code>[&quot;order&quot;, &quot;trad&quot;, &quot;poly&quot;, &quot;draw&quot;]</code></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>plugins</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_6-5-plugins"><a href="#_6-5-plugins" class="header-anchor">#</a> 6.5 .plugins</h3> <p>使 <code>[&quot;order&quot;, &quot;trad&quot;, &quot;poly&quot;, &quot;draw&quot;]</code></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>plugins</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/cnchar/doc/poly.html"> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/doc/poly.html">
cnchar-poly cnchar-poly
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/9.b0989f22.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/9.cad83506.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/10.eeab0d04.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/3.79e54f24.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/10.70b04062.js" as="script"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/3.78228900.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link router-link-exact-active router-link-active">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link router-link-exact-active router-link-active">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,7 +76,7 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="active sidebar-link"></a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_2--setspell" class="sidebar-link">2. : setSpell</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_3--setspelldefault" class="sidebar-link">3. : setSpellDefault</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_4--setstrokecount" class="sidebar-link">4. : setStrokeCount</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_5--setorder" class="sidebar-link">5. : setOrder</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_6-setpolyphrase" class="sidebar-link">6. setPolyPhrase</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_7--setradical" class="sidebar-link">7. : setRadical</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/custom.html#_8--addxhy" class="sidebar-link">8. : addXhy</a></li></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p> cnchar </p> <p> cnchar api便</p> <h2 id="_2--setspell"><a href="#_2--setspell" class="header-anchor">#</a> 2. : setSpell</h2> <p><code>setSpell</code> </p> <div class="language-ts extra-class"><pre class="language-ts"><code>cnchar<span class="token punctuation">.</span><span class="token function">setSpell</span><span class="token punctuation">(</span>word<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">,</span> spell<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="active sidebar-link"></a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/custom.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/custom.html#_2--setspell" class="sidebar-link">2. : setSpell</a></li><li class="sidebar-sub-header"><a href="/doc/custom.html#_3--setspelldefault" class="sidebar-link">3. : setSpellDefault</a></li><li class="sidebar-sub-header"><a href="/doc/custom.html#_4--setstrokecount" class="sidebar-link">4. : setStrokeCount</a></li><li class="sidebar-sub-header"><a href="/doc/custom.html#_5--setorder" class="sidebar-link">5. : setOrder</a></li><li class="sidebar-sub-header"><a href="/doc/custom.html#_6-setpolyphrase" class="sidebar-link">6. setPolyPhrase</a></li><li class="sidebar-sub-header"><a href="/doc/custom.html#_7--setradical" class="sidebar-link">7. : setRadical</a></li><li class="sidebar-sub-header"><a href="/doc/custom.html#_8--addxhy" class="sidebar-link">8. : addXhy</a></li></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p> cnchar </p> <p> cnchar api便</p> <h2 id="_2--setspell"><a href="#_2--setspell" class="header-anchor">#</a> 2. : setSpell</h2> <p><code>setSpell</code> </p> <div class="language-ts extra-class"><pre class="language-ts"><code>cnchar<span class="token punctuation">.</span><span class="token function">setSpell</span><span class="token punctuation">(</span>word<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">,</span> spell<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span>
cnchar<span class="token punctuation">.</span><span class="token function">setSpell</span><span class="token punctuation">(</span>json<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">[</span>key<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">]</span><span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span> cnchar<span class="token punctuation">.</span><span class="token function">setSpell</span><span class="token punctuation">(</span>json<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token punctuation">[</span>key<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">]</span><span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token keyword">void</span><span class="token punctuation">;</span>
</code></pre></div><p></p> <p>lv2=&gt;lǘ</p> <div class="language-js extra-class"><pre class="language-js"><code><span class="token comment">// cnchar cnchar</span> </code></pre></div><p></p> <p>lv2=&gt;lǘ</p> <div class="language-js extra-class"><pre class="language-js"><code><span class="token comment">// cnchar cnchar</span>
cnchar<span class="token punctuation">.</span><span class="token function">setSpell</span><span class="token punctuation">(</span><span class="token string">'x'</span><span class="token punctuation">,</span> <span class="token string">'x'</span><span class="token punctuation">)</span><span class="token punctuation">;</span> cnchar<span class="token punctuation">.</span><span class="token function">setSpell</span><span class="token punctuation">(</span><span class="token string">'x'</span><span class="token punctuation">,</span> <span class="token string">'x'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
@ -132,11 +132,11 @@ cnchar<span class="token punctuation">.</span>xhy<span class="token punctuation"
<span class="token punctuation">[</span><span class="token string">''</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">''</span><span class="token punctuation">,</span> <span class="token string">''</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
<span class="token punctuation">[</span><span class="token string">'2'</span><span class="token punctuation">,</span> <span class="token string">'2'</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token punctuation">[</span><span class="token string">'2'</span><span class="token punctuation">,</span> <span class="token string">'2'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> </code></pre></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/tool.html" class="prev"> <a href="/doc/tool.html" class="prev">
工具方法 工具方法
</a></span> <!----></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </a></span> <!----></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/10.eeab0d04.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/10.70b04062.js" defer></script>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/12.cb64600b.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/12.b80cc33e.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link router-link-exact-active router-link-active">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link router-link-exact-active router-link-active">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,19 +76,19 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="active sidebar-link">cnchar-idiom</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/idiom.html#_1-" class="sidebar-link">1 </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/idiom.html#_2-idiom-" class="sidebar-link">2. idiom </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/idiom.html#_3-" class="sidebar-link">3. </a></li></ul></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1 </h2> <p>cnchar2.2.0 <code>cnchar-idiom</code> cnchar</p> <p>使</p> <div><pre><code class="hljs typescript">cnchar.idiom(text:<span class="hljs-built_in">string</span>, ...idiomArgs: <span class="hljs-built_in">Array</span>&lt;idiomArg&gt;):<span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;;</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>idiom</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="active sidebar-link">cnchar-idiom</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/idiom.html#_1-" class="sidebar-link">1 </a></li><li class="sidebar-sub-header"><a href="/doc/idiom.html#_2-idiom-" class="sidebar-link">2. idiom </a></li><li class="sidebar-sub-header"><a href="/doc/idiom.html#_3-" class="sidebar-link">3. </a></li></ul></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1 </h2> <p>cnchar2.2.0 <code>cnchar-idiom</code> cnchar</p> <p>使</p> <div><pre><code class="hljs typescript">cnchar.idiom(text:<span class="hljs-built_in">string</span>, ...idiomArgs: <span class="hljs-built_in">Array</span>&lt;idiomArg&gt;):<span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;;</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>idiom</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使cdnwindow <code>CncharIdiom</code> </p> <h2 id="_2-idiom-"><a href="#_2-idiom-" class="header-anchor">#</a> 2. idiom </h2> <p>value arg </p> <div><pre><code class="hljs typescript">cnchar.idiom(value,arg1,arg2,...);</code></pre></div> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">char</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr> <tr><td style="text-align:center;">stroke</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">char</td></tr> <tr><td style="text-align:center;">spell</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">stroke</td></tr> <tr><td style="text-align:center;">tone</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">spell</td></tr></tbody></table> <p> <code>spell</code> &gt; <code>stroke</code> &gt; <code>char</code></p> <h2 id="_3-"><a href="#_3-" class="header-anchor">#</a> 3. </h2> <p>cnchar</p> <div><pre><code class="hljs javascript">cnchar.idiom([<span class="hljs-string">''</span>, <span class="hljs-string">''</span>, <span class="hljs-string">''</span>, <span class="hljs-string">''</span>]) <span class="hljs-comment">// ['', '']</span> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使cdnwindow <code>CncharIdiom</code> </p> <h2 id="_2-idiom-"><a href="#_2-idiom-" class="header-anchor">#</a> 2. idiom </h2> <p>value arg </p> <div><pre><code class="hljs typescript">cnchar.idiom(value,arg1,arg2,...);</code></pre></div> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">char</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr> <tr><td style="text-align:center;">stroke</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">char</td></tr> <tr><td style="text-align:center;">spell</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">stroke</td></tr> <tr><td style="text-align:center;">tone</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">spell</td></tr></tbody></table> <p> <code>spell</code> &gt; <code>stroke</code> &gt; <code>char</code></p> <h2 id="_3-"><a href="#_3-" class="header-anchor">#</a> 3. </h2> <p>cnchar</p> <div><pre><code class="hljs javascript">cnchar.idiom([<span class="hljs-string">''</span>, <span class="hljs-string">''</span>, <span class="hljs-string">''</span>, <span class="hljs-string">''</span>]) <span class="hljs-comment">// ['', '']</span>
cnchar.idiom([<span class="hljs-number">4</span>, <span class="hljs-number">6</span>, <span class="hljs-number">2</span>, <span class="hljs-number">6</span>], <span class="hljs-string">'stroke'</span>) <span class="hljs-comment">// ['']</span> cnchar.idiom([<span class="hljs-number">4</span>, <span class="hljs-number">6</span>, <span class="hljs-number">2</span>, <span class="hljs-number">6</span>], <span class="hljs-string">'stroke'</span>) <span class="hljs-comment">// ['']</span>
cnchar.idiom(<span class="hljs-string">'shang'</span>, <span class="hljs-string">'spell'</span>) <span class="hljs-comment">// ['', '', ... ]</span> cnchar.idiom(<span class="hljs-string">'shang'</span>, <span class="hljs-string">'spell'</span>) <span class="hljs-comment">// ['', '', ... ]</span>
cnchar.idiom(<span class="hljs-string">'shang4'</span>, <span class="hljs-string">'spell'</span>, <span class="hljs-string">'tone'</span>) <span class="hljs-comment">// ['', '', ... ]</span></code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> cnchar.idiom(<span class="hljs-string">'shang4'</span>, <span class="hljs-string">'spell'</span>, <span class="hljs-string">'tone'</span>) <span class="hljs-comment">// ['', '', ... ]</span></code></pre></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/draw.html" class="prev"> <a href="/doc/draw.html" class="prev">
cnchar-draw cnchar-draw
</a></span> <span class="next"><a href="/cnchar/doc/xhy.html"> </a></span> <span class="next"><a href="/doc/xhy.html">
cnchar-xhy cnchar-xhy
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/12.cb64600b.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/12.b80cc33e.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/13.b8427796.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/13.d4f7bb58.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link router-link-exact-active router-link-active">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link router-link-exact-active router-link-active">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,21 +76,21 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="active sidebar-link">cnchar-order</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/order.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/order.html#_2-stroke" class="sidebar-link">2. stroke</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/order.html#_3-" class="sidebar-link">3. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/order.html#_4--ordertoword" class="sidebar-link">4. (orderToWord)</a></li></ul></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p><code>cnchar-order</code> <code>orderToWord</code>json</p> <p><code>cnchar.stroke()</code> <code>order</code> </p> <p>npm</p> <div><pre><code class="hljs">npm i cnchar-order</code></pre></div> <p>cdn使</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-order/cnchar.order.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>; <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="active sidebar-link">cnchar-order</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/order.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/order.html#_2-stroke" class="sidebar-link">2. stroke</a></li><li class="sidebar-sub-header"><a href="/doc/order.html#_3-" class="sidebar-link">3. </a></li><li class="sidebar-sub-header"><a href="/doc/order.html#_4--ordertoword" class="sidebar-link">4. (orderToWord)</a></li></ul></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p><code>cnchar-order</code> <code>orderToWord</code>json</p> <p><code>cnchar.stroke()</code> <code>order</code> </p> <p>npm</p> <div><pre><code class="hljs">npm i cnchar-order</code></pre></div> <p>cdn使</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-order/cnchar.order.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>;
<span class="hljs-keyword">import</span> order <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-order'</span>; <span class="hljs-keyword">import</span> order <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-order'</span>;
cnchar.use(order); <span class="hljs-comment">// use 在浏览器环境中非必须</span></code></pre></div> <h2 id="_2-stroke参数"><a href="#_2-stroke参数" class="header-anchor">#</a> 2. stroke参数</h2> <table><thead><tr><th style="text-align:center;">参数</th> <th style="text-align:center;">作用</th> <th style="text-align:center;">是否默认</th> <th style="text-align:center;">依赖库</th> <th style="text-align:center;">备注</th></tr></thead> <tbody><tr><td style="text-align:center;">array</td> <td style="text-align:center;">返回数组</td> <td style="text-align:center;">否</td> <td style="text-align:center;">--</td> <td style="text-align:center;">使用 cnchar-order 且启用 order 参数后该参数被忽略</td></tr> <tr><td style="text-align:center;">order</td> <td style="text-align:center;">启用笔画顺序</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">letter</td> <td style="text-align:center;">使用笔画顺序字母序列</td> <td style="text-align:center;">是</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">当启用 order 后,该值是默认值</td></tr> <tr><td style="text-align:center;">detail</td> <td style="text-align:center;">使用笔画顺序详情作为返回值,每个汉字对应一个 json</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">优先级小于 letter</td></tr> <tr><td style="text-align:center;">shape</td> <td style="text-align:center;">使用笔画形状作为返回值</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">优先级小于 detail</td></tr> <tr><td style="text-align:center;">name</td> <td style="text-align:center;">使用笔画名称作为返回值</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">优先级小于 shape</td></tr> <tr><td style="text-align:center;">count</td> <td style="text-align:center;">使用笔画数作为返回值</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-poly</td> <td style="text-align:center;">优先级小于 name</td></tr> <tr><td style="text-align:center;">simple</td> <td style="text-align:center;">是否禁用繁体字的笔画功能</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;">使用 cnchar-trad 之后,默认对繁体字启用笔画功能,该参数用于禁用繁体字笔画功能</td></tr></tbody></table> <p>以上五种模式优先级为 <strong>letter &lt; detail &lt; shape &lt; name &lt; count</strong></p> <h2 id="_3-实例"><a href="#_3-实例" class="header-anchor">#</a> 3. 实例</h2> <p>以下演示几个多音词的例子</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>order</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> cnchar.use(order); <span class="hljs-comment">// use 在浏览器环境中非必须</span></code></pre></div> <h2 id="_2-stroke参数"><a href="#_2-stroke参数" class="header-anchor">#</a> 2. stroke参数</h2> <table><thead><tr><th style="text-align:center;">参数</th> <th style="text-align:center;">作用</th> <th style="text-align:center;">是否默认</th> <th style="text-align:center;">依赖库</th> <th style="text-align:center;">备注</th></tr></thead> <tbody><tr><td style="text-align:center;">array</td> <td style="text-align:center;">返回数组</td> <td style="text-align:center;">否</td> <td style="text-align:center;">--</td> <td style="text-align:center;">使用 cnchar-order 且启用 order 参数后该参数被忽略</td></tr> <tr><td style="text-align:center;">order</td> <td style="text-align:center;">启用笔画顺序</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">letter</td> <td style="text-align:center;">使用笔画顺序字母序列</td> <td style="text-align:center;">是</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">当启用 order 后,该值是默认值</td></tr> <tr><td style="text-align:center;">detail</td> <td style="text-align:center;">使用笔画顺序详情作为返回值,每个汉字对应一个 json</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">优先级小于 letter</td></tr> <tr><td style="text-align:center;">shape</td> <td style="text-align:center;">使用笔画形状作为返回值</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">优先级小于 detail</td></tr> <tr><td style="text-align:center;">name</td> <td style="text-align:center;">使用笔画名称作为返回值</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-order</td> <td style="text-align:center;">优先级小于 shape</td></tr> <tr><td style="text-align:center;">count</td> <td style="text-align:center;">使用笔画数作为返回值</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-poly</td> <td style="text-align:center;">优先级小于 name</td></tr> <tr><td style="text-align:center;">simple</td> <td style="text-align:center;">是否禁用繁体字的笔画功能</td> <td style="text-align:center;">否</td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;">使用 cnchar-trad 之后,默认对繁体字启用笔画功能,该参数用于禁用繁体字笔画功能</td></tr></tbody></table> <p>以上五种模式优先级为 <strong>letter &lt; detail &lt; shape &lt; name &lt; count</strong></p> <h2 id="_3-实例"><a href="#_3-实例" class="header-anchor">#</a> 3. 实例</h2> <p>以下演示几个多音词的例子</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>order</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>shape iosmacos</p> <h2 id="_4--ordertoword"><a href="#_4--ordertoword" class="header-anchor">#</a> 4. (orderToWord)</h2> <h3 id="_4-1-使"><a href="#_4-1-使" class="header-anchor">#</a> 4.1 使</h3> <p> <code>cnchar-order</code> ( 2.0.2 )cnchar 使</p> <div><pre><code class="hljs javascript">cnchar.orderToWord(orderNames[,...args]);</code></pre></div> <p><code>orderNames</code> , </p> <p><code>args</code> <code>['match','matchorder','contain','start','array','simple']</code>, 使 <code>cnchar.type.orderToWord</code> 4.2</p> <p>使</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>orderToWord</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>shape iosmacos</p> <h2 id="_4--ordertoword"><a href="#_4--ordertoword" class="header-anchor">#</a> 4. (orderToWord)</h2> <h3 id="_4-1-使"><a href="#_4-1-使" class="header-anchor">#</a> 4.1 使</h3> <p> <code>cnchar-order</code> ( 2.0.2 )cnchar 使</p> <div><pre><code class="hljs javascript">cnchar.orderToWord(orderNames[,...args]);</code></pre></div> <p><code>orderNames</code> , </p> <p><code>args</code> <code>['match','matchorder','contain','start','array','simple']</code>, 使 <code>cnchar.type.orderToWord</code> 4.2</p> <p>使</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>orderToWord</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_4-2-"><a href="#_4-2-" class="header-anchor">#</a> 4.2 </h3> <p> arg </p> <div><pre><code class="hljs javascript">cnchar.orderToWord(orders,arg1,arg2,...);</code></pre></div> <p>arg </p> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">match</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">matchorder</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">contain</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">start</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">array</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">simple</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;"> <code>cnchar-trad</code> </td></tr> <tr><td style="text-align:center;">trad</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;"> <code>cnchar-trad</code> </td></tr></tbody></table> <p> <strong>match &gt; matchorder &gt; contain &gt; start &gt; </strong></p> <p>使 orders </p> <h3 id="_4-3--ordertoword-orders"><a href="#_4-3--ordertoword-orders" class="header-anchor">#</a> 4.3 (orderToWord.orders)</h3> <p> api </p> <p>orderNames json key </p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>orders</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h3 id="_4-2-"><a href="#_4-2-" class="header-anchor">#</a> 4.2 </h3> <p> arg </p> <div><pre><code class="hljs javascript">cnchar.orderToWord(orders,arg1,arg2,...);</code></pre></div> <p>arg </p> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">match</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">matchorder</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">contain</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">start</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">array</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr> <tr><td style="text-align:center;">simple</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;"> <code>cnchar-trad</code> </td></tr> <tr><td style="text-align:center;">trad</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">cnchar-trad</td> <td style="text-align:center;"> <code>cnchar-trad</code> </td></tr></tbody></table> <p> <strong>match &gt; matchorder &gt; contain &gt; start &gt; </strong></p> <p>使 orders </p> <h3 id="_4-3--ordertoword-orders"><a href="#_4-3--ordertoword-orders" class="header-anchor">#</a> 4.3 (orderToWord.orders)</h3> <p> api </p> <p>orderNames json key </p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>orders</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使 Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使
<strong>卧钩 = 斜钩</strong><strong> = </strong><strong> = </strong><strong> = </strong><strong> = </strong></p></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> <strong>卧钩 = 斜钩</strong><strong> = </strong><strong> = </strong><strong> = </strong><strong> = </strong></p></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/poly.html" class="prev"> <a href="/doc/poly.html" class="prev">
cnchar-poly cnchar-poly
</a></span> <span class="next"><a href="/cnchar/doc/trad.html"> </a></span> <span class="next"><a href="/doc/trad.html">
cnchar-trad cnchar-trad
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/13.b8427796.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/13.d4f7bb58.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/14.8cb74a49.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/14.269f05ae.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link router-link-exact-active router-link-active">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link router-link-exact-active router-link-active">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,18 +76,18 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="active sidebar-link">cnchar-poly</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/poly.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/poly.html#_2-" class="sidebar-link">2. </a></li></ul></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p><code>cnchar-poly</code> api</p> <p><code>cnchar.spell()</code> </p> <p>npm</p> <div><pre><code class="hljs">npm i cnchar-poly</code></pre></div> <p>cdn使</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-poly/cnchar.poly.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>; <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="active sidebar-link">cnchar-poly</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/poly.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/poly.html#_2-" class="sidebar-link">2. </a></li></ul></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p><code>cnchar-poly</code> api</p> <p><code>cnchar.spell()</code> </p> <p>npm</p> <div><pre><code class="hljs">npm i cnchar-poly</code></pre></div> <p>cdn使</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-poly/cnchar.poly.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>;
<span class="hljs-keyword">import</span> poly <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-poly'</span>; <span class="hljs-keyword">import</span> poly <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-poly'</span>;
cnchar.use(poly); <span class="hljs-comment">// use 在浏览器环境中非必须</span></code></pre></div> <h2 id="_2-实例"><a href="#_2-实例" class="header-anchor">#</a> 2. 实例</h2> <p>以下演示几个多音词的例子</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>poly</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> cnchar.use(poly); <span class="hljs-comment">// use 在浏览器环境中非必须</span></code></pre></div> <h2 id="_2-实例"><a href="#_2-实例" class="header-anchor">#</a> 2. 实例</h2> <p>以下演示几个多音词的例子</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>poly</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>cncharjs</p> <p><a href="https://github.com/theajack/cnchar/issues/new" target="_blank" rel="noopener noreferrer">issuepr<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>cncharjs</p> <p><a href="https://github.com/theajack/cnchar/issues/new" target="_blank" rel="noopener noreferrer">issuepr<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/cnchar.html" class="prev"> <a href="/doc/cnchar.html" class="prev">
cnchar cnchar
</a></span> <span class="next"><a href="/cnchar/doc/order.html"> </a></span> <span class="next"><a href="/doc/order.html">
cnchar-order cnchar-order
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/14.8cb74a49.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/14.269f05ae.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/15.6d40aa8a.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/15.7fadafaf.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link router-link-exact-active router-link-active">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link router-link-exact-active router-link-active">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,19 +76,19 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="active sidebar-link">cnchar-radical</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/radical.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/radical.html#_2-radical-" class="sidebar-link">2. radical </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/radical.html#_3-" class="sidebar-link">3. </a></li></ul></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar2.2.5 <code>cnchar-radical</code> cnchar</p> <p> <code>kewell-tsao</code> pr</p> <p>使</p> <div><pre><code class="hljs typescript">cnchar.radical(text:<span class="hljs-built_in">string</span> | <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;, ...radicalArgs: <span class="hljs-built_in">Array</span>&lt;radicalArg&gt;): <span class="hljs-built_in">string</span> | <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;;</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>radical</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="active sidebar-link">cnchar-radical</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/radical.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/radical.html#_2-radical-" class="sidebar-link">2. radical </a></li><li class="sidebar-sub-header"><a href="/doc/radical.html#_3-" class="sidebar-link">3. </a></li></ul></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar2.2.5 <code>cnchar-radical</code> cnchar</p> <p> <code>kewell-tsao</code> pr</p> <p>使</p> <div><pre><code class="hljs typescript">cnchar.radical(text:<span class="hljs-built_in">string</span> | <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;, ...radicalArgs: <span class="hljs-built_in">Array</span>&lt;radicalArg&gt;): <span class="hljs-built_in">string</span> | <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;;</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>radical</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使cdnwindow <code>CncharRadical</code> </p> <h2 id="_2-radical-"><a href="#_2-radical-" class="header-anchor">#</a> 2. radical </h2> <p>value</p> <div><pre><code class="hljs typescript">cnchar.radical(value,arg1,arg2,...);</code></pre></div> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">array</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr></tbody></table> <h2 id="_3-"><a href="#_3-" class="header-anchor">#</a> 3. </h2> <p>cnchar</p> <div><pre><code class="hljs javascript">cnchar.radical(<span class="hljs-string">''</span>); <span class="hljs-comment">// "",</span> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使cdnwindow <code>CncharRadical</code> </p> <h2 id="_2-radical-"><a href="#_2-radical-" class="header-anchor">#</a> 2. radical </h2> <p>value</p> <div><pre><code class="hljs typescript">cnchar.radical(value,arg1,arg2,...);</code></pre></div> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">array</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr></tbody></table> <h2 id="_3-"><a href="#_3-" class="header-anchor">#</a> 3. </h2> <p>cnchar</p> <div><pre><code class="hljs javascript">cnchar.radical(<span class="hljs-string">''</span>); <span class="hljs-comment">// "",</span>
cnchar.radical(<span class="hljs-string">'你好呀'</span>); <span class="hljs-comment">// "亻女口"</span> cnchar.radical(<span class="hljs-string">'你好呀'</span>); <span class="hljs-comment">// "亻女口"</span>
cnchar.radical(<span class="hljs-string">'你好呀'</span>, <span class="hljs-string">'array'</span>); <span class="hljs-comment">// ["", "", ""]</span> cnchar.radical(<span class="hljs-string">'你好呀'</span>, <span class="hljs-string">'array'</span>); <span class="hljs-comment">// ["", "", ""]</span>
cnchar.radical([<span class="hljs-string">"你"</span>, <span class="hljs-string">""</span>, <span class="hljs-string">""</span>]); <span class="hljs-comment">// ["", "", ""]</span></code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> cnchar.radical([<span class="hljs-string">"你"</span>, <span class="hljs-string">""</span>, <span class="hljs-string">""</span>]); <span class="hljs-comment">// ["", "", ""]</span></code></pre></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/xhy.html" class="prev"> <a href="/doc/xhy.html" class="prev">
cnchar-xhy cnchar-xhy
</a></span> <span class="next"><a href="/cnchar/doc/tool.html"> </a></span> <span class="next"><a href="/doc/tool.html">
工具方法 工具方法
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/15.6d40aa8a.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/15.7fadafaf.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/16.6843fc0d.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/16.d1e8d47d.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link router-link-exact-active router-link-active">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link router-link-exact-active router-link-active">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,7 +76,7 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="active sidebar-link"></a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_2--spellinfo" class="sidebar-link">2 : spellInfo</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_3--transformtone" class="sidebar-link">3. : transformTone</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_4--iscnchar" class="sidebar-link">4. : isCnChar</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_5--comparespell" class="sidebar-link">5. : compareSpell</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_6--comparestroke" class="sidebar-link">6. : compareStroke</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_7--sortspell" class="sidebar-link">7. : sortSpell</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_8--sortstroke" class="sidebar-link">8. : sortStroke</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_9-ispolyword" class="sidebar-link">9. isPolyWord</a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/tool.html#_10-shapespell" class="sidebar-link">10. shapeSpell</a></li></ul></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar 使便便</p> <h2 id="_2--spellinfo"><a href="#_2--spellinfo" class="header-anchor">#</a> 2 : spellInfo</h2> <h3 id="_2-1-api使"><a href="#_2-1-api使" class="header-anchor">#</a> 2.1 api使</h3> <p><code>spellInfo</code> </p> <div><pre><code class="hljs javascript">cnchar.spellInfo(spell);</code></pre></div> <p>json</p> <div><pre><code class="hljs json">{ <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="active sidebar-link"></a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/tool.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_2--spellinfo" class="sidebar-link">2 : spellInfo</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_3--transformtone" class="sidebar-link">3. : transformTone</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_4--iscnchar" class="sidebar-link">4. : isCnChar</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_5--comparespell" class="sidebar-link">5. : compareSpell</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_6--comparestroke" class="sidebar-link">6. : compareStroke</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_7--sortspell" class="sidebar-link">7. : sortSpell</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_8--sortstroke" class="sidebar-link">8. : sortStroke</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_9-ispolyword" class="sidebar-link">9. isPolyWord</a></li><li class="sidebar-sub-header"><a href="/doc/tool.html#_10-shapespell" class="sidebar-link">10. shapeSpell</a></li></ul></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar 使便便</p> <h2 id="_2--spellinfo"><a href="#_2--spellinfo" class="header-anchor">#</a> 2 : spellInfo</h2> <h3 id="_2-1-api使"><a href="#_2-1-api使" class="header-anchor">#</a> 2.1 api使</h3> <p><code>spellInfo</code> </p> <div><pre><code class="hljs javascript">cnchar.spellInfo(spell);</code></pre></div> <p>json</p> <div><pre><code class="hljs json">{
<span class="hljs-attr">"spell"</span>: string, <span class="hljs-comment">// 去音调的拼音小写</span> <span class="hljs-attr">"spell"</span>: string, <span class="hljs-comment">// 去音调的拼音小写</span>
<span class="hljs-attr">"tone"</span>: number, <span class="hljs-comment">// 音调 0-5</span> <span class="hljs-attr">"tone"</span>: number, <span class="hljs-comment">// 音调 0-5</span>
<span class="hljs-attr">"index"</span>: number, <span class="hljs-comment">// 音调位置</span> <span class="hljs-attr">"index"</span>: number, <span class="hljs-comment">// 音调位置</span>
@ -147,15 +147,15 @@ cnchar<span class="token punctuation">.</span><span class="token function">isPol
</code></pre></div><h2 id="_10-shapespell"><a href="#_10-shapespell" class="header-anchor">#</a> 10. shapeSpell</h2> <p><code>shapeSpell</code> </p> <p> <code>lv2</code> <code>lǘ</code><code>ta1</code> <code>tā</code> 便</p> <div class="language-ts extra-class"><pre class="language-ts"><code>cnchar<span class="token punctuation">.</span><span class="token function">shapeSpell</span><span class="token punctuation">(</span>spell<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">;</span> </code></pre></div><h2 id="_10-shapespell"><a href="#_10-shapespell" class="header-anchor">#</a> 10. shapeSpell</h2> <p><code>shapeSpell</code> </p> <p> <code>lv2</code> <code>lǘ</code><code>ta1</code> <code>tā</code> 便</p> <div class="language-ts extra-class"><pre class="language-ts"><code>cnchar<span class="token punctuation">.</span><span class="token function">shapeSpell</span><span class="token punctuation">(</span>spell<span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token builtin">string</span><span class="token punctuation">;</span>
</code></pre></div><p>使</p> <div class="language-js extra-class"><pre class="language-js"><code>cnchar<span class="token punctuation">.</span><span class="token function">shapeSpell</span><span class="token punctuation">(</span><span class="token string">'lv2'</span><span class="token punctuation">)</span> <span class="token comment">// lǘ</span> </code></pre></div><p>使</p> <div class="language-js extra-class"><pre class="language-js"><code>cnchar<span class="token punctuation">.</span><span class="token function">shapeSpell</span><span class="token punctuation">(</span><span class="token string">'lv2'</span><span class="token punctuation">)</span> <span class="token comment">// lǘ</span>
cnchar<span class="token punctuation">.</span><span class="token function">shapeSpell</span><span class="token punctuation">(</span><span class="token string">'shang4'</span><span class="token punctuation">)</span> <span class="token comment">// shàng</span> cnchar<span class="token punctuation">.</span><span class="token function">shapeSpell</span><span class="token punctuation">(</span><span class="token string">'shang4'</span><span class="token punctuation">)</span> <span class="token comment">// shàng</span>
</code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> </code></pre></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/radical.html" class="prev"> <a href="/doc/radical.html" class="prev">
cnchar-radical cnchar-radical
</a></span> <span class="next"><a href="/cnchar/doc/custom.html"> </a></span> <span class="next"><a href="/doc/custom.html">
自定义数据 自定义数据
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/16.6843fc0d.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/16.d1e8d47d.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/17.d8524e84.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/17.d8524e84.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link router-link-exact-active router-link-active">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link router-link-exact-active router-link-active">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,7 +76,7 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="active sidebar-link">cnchar-trad</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/trad.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/trad.html#_2-" class="sidebar-link">2. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/trad.html#_3--convert" class="sidebar-link">3. (convert)</a></li></ul></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p><code>cnchar-trad</code> </p> <p>cncharapi <code>simple</code><code>trad</code>使使</p> <p>npm</p> <div><pre><code class="hljs">npm i cnchar-trad</code></pre></div> <p>cdn使</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-trad/cnchar.trad.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>; <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="active sidebar-link">cnchar-trad</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/trad.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/trad.html#_2-" class="sidebar-link">2. </a></li><li class="sidebar-sub-header"><a href="/doc/trad.html#_3--convert" class="sidebar-link">3. (convert)</a></li></ul></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="sidebar-link">cnchar-xhy</a></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p><code>cnchar-trad</code> </p> <p>cncharapi <code>simple</code><code>trad</code>使使</p> <p>npm</p> <div><pre><code class="hljs">npm i cnchar-trad</code></pre></div> <p>cdn使</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-trad/cnchar.trad.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>;
<span class="hljs-keyword">import</span> trad <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-trad'</span>; <span class="hljs-keyword">import</span> trad <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-trad'</span>;
cnchar.use(trad); <span class="hljs-comment">// use 在浏览器环境中非必须</span></code></pre></div> <h2 id="_2-繁体字支持"><a href="#_2-繁体字支持" class="header-anchor">#</a> 2. 繁体字支持</h2> <p>以下演示几个繁体字支持的例子</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>trad</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> cnchar.use(trad); <span class="hljs-comment">// use 在浏览器环境中非必须</span></code></pre></div> <h2 id="_2-繁体字支持"><a href="#_2-繁体字支持" class="header-anchor">#</a> 2. 繁体字支持</h2> <p>以下演示几个繁体字支持的例子</p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>trad</span> <span class="code-desc" data-v-96507b74></span> <i title="在线运行" class="ei-play code-btn" data-v-96507b74></i> <i title="复制代码" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74>运行结果</div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74>隐藏结果</span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h2 id="_3--convert"><a href="#_3--convert" class="header-anchor">#</a> 3. (convert)</h2> <p> cnchar-trad cnchar <code>convert</code> string.prototype </p> <div><pre><code class="hljs javascript">cnchar.convert.simpleToTrad(string); <span class="hljs-comment">// =&gt; </span> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <h2 id="_3--convert"><a href="#_3--convert" class="header-anchor">#</a> 3. (convert)</h2> <p> cnchar-trad cnchar <code>convert</code> string.prototype </p> <div><pre><code class="hljs javascript">cnchar.convert.simpleToTrad(string); <span class="hljs-comment">// =&gt; </span>
@ -91,15 +91,15 @@ string.convertTradToSimple();
string.convertTradToSpark(); string.convertTradToSpark();
string.convertSparkToSimple(); string.convertSparkToSimple();
string.convertSparkToTrad();</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>convert</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> string.convertSparkToTrad();</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>convert</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/order.html" class="prev"> <a href="/doc/order.html" class="prev">
cnchar-order cnchar-order
</a></span> <span class="next"><a href="/cnchar/doc/draw.html"> </a></span> <span class="next"><a href="/doc/draw.html">
cnchar-draw cnchar-draw
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/17.d8524e84.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/17.d8524e84.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/18.35eb0643.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/18.35eb0643.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link router-link-exact-active router-link-active">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link router-link-exact-active router-link-active"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link router-link-exact-active router-link-active">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,19 +76,19 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/cnchar/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/cnchar/doc/xhy.html" class="active sidebar-link">cnchar-xhy</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/doc/xhy.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/xhy.html#_2-xhy-" class="sidebar-link">2. xhy </a></li><li class="sidebar-sub-header"><a href="/cnchar/doc/xhy.html#_3-" class="sidebar-link">3. </a></li></ul></li><li><a href="/cnchar/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/cnchar/doc/tool.html" class="sidebar-link"></a></li><li><a href="/cnchar/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar2.2.0 <code>cnchar-xhy</code> cnchar</p> <p>使</p> <div><pre><code class="hljs typescript">cnchar.xhy(text:<span class="hljs-built_in">string</span>, ...xhyArgs: <span class="hljs-built_in">Array</span>&lt;xhyArg&gt;):<span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;;</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>xhy</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>cnchar</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/doc/draw.html" class="sidebar-link">cnchar-draw</a></li><li><a href="/doc/idiom.html" class="sidebar-link">cnchar-idiom</a></li><li><a href="/doc/xhy.html" class="active sidebar-link">cnchar-xhy</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/doc/xhy.html#_1-" class="sidebar-link">1. </a></li><li class="sidebar-sub-header"><a href="/doc/xhy.html#_2-xhy-" class="sidebar-link">2. xhy </a></li><li class="sidebar-sub-header"><a href="/doc/xhy.html#_3-" class="sidebar-link">3. </a></li></ul></li><li><a href="/doc/radical.html" class="sidebar-link">cnchar-radical</a></li><li><a href="/doc/tool.html" class="sidebar-link"></a></li><li><a href="/doc/custom.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-"><a href="#_1-" class="header-anchor">#</a> 1. </h2> <p>cnchar2.2.0 <code>cnchar-xhy</code> cnchar</p> <p>使</p> <div><pre><code class="hljs typescript">cnchar.xhy(text:<span class="hljs-built_in">string</span>, ...xhyArgs: <span class="hljs-built_in">Array</span>&lt;xhyArg&gt;):<span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">string</span>&gt;;</code></pre></div> <p></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>xhy</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使cdnwindow <code>CncharXHY</code> </p> <h2 id="_2-xhy-"><a href="#_2-xhy-" class="header-anchor">#</a> 2. xhy </h2> <p>value arg </p> <div><pre><code class="hljs typescript">cnchar.xhy(value,arg1,arg2,...);</code></pre></div> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">fuzzy</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr> <tr><td style="text-align:center;">answer</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr> <tr><td style="text-align:center;">second</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr></tbody></table> <h2 id="_3-"><a href="#_3-" class="header-anchor">#</a> 3. </h2> <p>cnchar</p> <div><pre><code class="hljs javascript">cnchar.xhy(<span class="hljs-string">''</span>) <span class="hljs-comment">// ['-', '-']</span> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使cdnwindow <code>CncharXHY</code> </p> <h2 id="_2-xhy-"><a href="#_2-xhy-" class="header-anchor">#</a> 2. xhy </h2> <p>value arg </p> <div><pre><code class="hljs typescript">cnchar.xhy(value,arg1,arg2,...);</code></pre></div> <table><thead><tr><th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th> <th style="text-align:center;"></th></tr></thead> <tbody><tr><td style="text-align:center;">fuzzy</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr> <tr><td style="text-align:center;">answer</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;"></td></tr> <tr><td style="text-align:center;">second</td> <td style="text-align:center;"></td> <td style="text-align:center;"></td> <td style="text-align:center;">--</td> <td style="text-align:center;">--</td></tr></tbody></table> <h2 id="_3-"><a href="#_3-" class="header-anchor">#</a> 3. </h2> <p>cnchar</p> <div><pre><code class="hljs javascript">cnchar.xhy(<span class="hljs-string">''</span>) <span class="hljs-comment">// ['-', '-']</span>
cnchar.xhy(<span class="hljs-string">'大水'</span>, <span class="hljs-string">'fuzzy'</span>) <span class="hljs-comment">// ['-', '-', ... ]</span> cnchar.xhy(<span class="hljs-string">'大水'</span>, <span class="hljs-string">'fuzzy'</span>) <span class="hljs-comment">// ['-', '-', ... ]</span>
cnchar.xhy(<span class="hljs-string">'大水'</span>, <span class="hljs-string">'fuzzy'</span>, <span class="hljs-string">'answer'</span>) <span class="hljs-comment">// ['', '', ... ]</span> cnchar.xhy(<span class="hljs-string">'大水'</span>, <span class="hljs-string">'fuzzy'</span>, <span class="hljs-string">'answer'</span>) <span class="hljs-comment">// ['', '', ... ]</span>
cnchar.xhy(<span class="hljs-string">'上晃下摇'</span>, <span class="hljs-string">'fuzzy'</span>, <span class="hljs-string">'answer'</span>, <span class="hljs-string">'second'</span>) <span class="hljs-comment">// ['', '']</span></code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> cnchar.xhy(<span class="hljs-string">'上晃下摇'</span>, <span class="hljs-string">'fuzzy'</span>, <span class="hljs-string">'answer'</span>, <span class="hljs-string">'second'</span>) <span class="hljs-comment">// ['', '']</span></code></pre></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/doc/idiom.html" class="prev"> <a href="/doc/idiom.html" class="prev">
cnchar-idiom cnchar-idiom
</a></span> <span class="next"><a href="/cnchar/doc/radical.html"> </a></span> <span class="next"><a href="/doc/radical.html">
cnchar-radical cnchar-radical
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/18.35eb0643.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/18.35eb0643.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/20.b8f6cf9e.js" as="script"><link rel="preload" href="/cnchar/assets/js/3.79e54f24.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/4.dec2fc6b.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/8.f01c3380.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/20.b8f6cf9e.js" as="script"><link rel="preload" href="/assets/js/3.78228900.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/4.8112a995.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/8.f01c3380.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link router-link-active"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link router-link-active">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link router-link-active"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link router-link-active">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,7 +76,7 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>使</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/cnchar/guide/" class="sidebar-link"></a></li><li><a href="/cnchar/guide/start.html" class="active sidebar-link"></a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/cnchar/guide/start.html#_1-npm" class="sidebar-link">1. npm</a></li><li class="sidebar-sub-header"><a href="/cnchar/guide/start.html#_2-cdn" class="sidebar-link">2. CDN</a></li><li class="sidebar-sub-header"><a href="/cnchar/guide/start.html#_3-cnchar-all" class="sidebar-link">3. cnchar-all</a></li><li class="sidebar-sub-header"><a href="/cnchar/guide/start.html#_4-使" class="sidebar-link">4. 使</a></li></ul></li><li><a href="/cnchar/doc/cnchar.html" class="sidebar-link"></a></li><li><a href="/cnchar/guide/version.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-npm"><a href="#_1-npm" class="header-anchor">#</a> 1. npm</h2> <p>cnchar <code>cnchar</code> drawidiomxhyradical使</p> <p><a href="https://npmjs.com/package/cnchar" target="_blank" rel="noopener noreferrer"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <div><pre><code class="hljs">npm i cnchar</code></pre></div> <p></p> <div><pre><code class="hljs">npm i cnchar-poly cnchar-order cnchar-trad cnchar-draw cnchar-idiom cnchar-xhy cnchar-radical</code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>; <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>使</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/guide/" class="sidebar-link"></a></li><li><a href="/guide/start.html" class="active sidebar-link"></a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/guide/start.html#_1-npm" class="sidebar-link">1. npm</a></li><li class="sidebar-sub-header"><a href="/guide/start.html#_2-cdn" class="sidebar-link">2. CDN</a></li><li class="sidebar-sub-header"><a href="/guide/start.html#_3-cnchar-all" class="sidebar-link">3. cnchar-all</a></li><li class="sidebar-sub-header"><a href="/guide/start.html#_4-使" class="sidebar-link">4. 使</a></li></ul></li><li><a href="/doc/cnchar.html" class="sidebar-link"></a></li><li><a href="/guide/version.html" class="sidebar-link"></a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="_1-npm"><a href="#_1-npm" class="header-anchor">#</a> 1. npm</h2> <p>cnchar <code>cnchar</code> drawidiomxhyradical使</p> <p><a href="https://npmjs.com/package/cnchar" target="_blank" rel="noopener noreferrer"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <div><pre><code class="hljs">npm i cnchar</code></pre></div> <p></p> <div><pre><code class="hljs">npm i cnchar-poly cnchar-order cnchar-trad cnchar-draw cnchar-idiom cnchar-xhy cnchar-radical</code></pre></div> <p>使</p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar'</span>;
<span class="hljs-comment">// 以下功能库请按需使用</span> <span class="hljs-comment">// 以下功能库请按需使用</span>
<span class="hljs-keyword">import</span> <span class="hljs-string">'cnchar-poly'</span>; <span class="hljs-keyword">import</span> <span class="hljs-string">'cnchar-poly'</span>;
<span class="hljs-keyword">import</span> <span class="hljs-string">'cnchar-order'</span>; <span class="hljs-keyword">import</span> <span class="hljs-string">'cnchar-order'</span>;
@ -109,15 +109,15 @@ cnchar.use(poly, order, trad, idiom, xhy, radical);</code></pre></div> <h2 id="_
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-idiom/cnchar.idiom.min.js"</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-idiom/cnchar.idiom.min.js"</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-radical/cnchar.radical.min.js"</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span> <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-radical/cnchar.radical.min.js"</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-xhy/cnchar.xhy.min.js"</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <h2 id="_3-cnchar-all"><a href="#_3-cnchar-all" class="header-anchor">#</a> 3. cnchar-all</h2> <p>使cnchar<code>cnchar-all</code>使</p> <div><pre><code class="hljs">npm i cnchar-all</code></pre></div> <p>commonjs </p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-all'</span>;</code></pre></div> <p>cdn</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-all/cnchar.all.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <h2 id="_4-使"><a href="#_4-使" class="header-anchor">#</a> 4. 使</h2> <p>cnchar <code>spell</code> <code>stroke</code></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>spell/stroke</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74> <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-xhy/cnchar.xhy.min.js"</span>&gt;</span> <span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <h2 id="_3-cnchar-all"><a href="#_3-cnchar-all" class="header-anchor">#</a> 3. cnchar-all</h2> <p>使cnchar<code>cnchar-all</code>使</p> <div><pre><code class="hljs">npm i cnchar-all</code></pre></div> <p>commonjs </p> <div><pre><code class="hljs javascript"><span class="hljs-keyword">import</span> cnchar <span class="hljs-keyword">from</span> <span class="hljs-string">'cnchar-all'</span>;</code></pre></div> <p>cdn</p> <div><pre><code class="hljs html"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdn.jsdelivr.net/npm/cnchar-all/cnchar.all.min.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></code></pre></div> <h2 id="_4-使"><a href="#_4-使" class="header-anchor">#</a> 4. 使</h2> <p>cnchar <code>spell</code> <code>stroke</code></p> <div><div class="code-box" data-v-96507b74><div data-v-96507b74><span class="code-title" data-v-96507b74>spell/stroke</span> <span class="code-desc" data-v-96507b74></span> <i title="线" class="ei-play code-btn" data-v-96507b74></i> <i title="" class="ei-copy code-btn" data-v-96507b74></i></div> <pre data-v-96507b74><code class="hljs"></code></pre> <div style="display:none;" data-v-96507b74><div class="output-title" data-v-96507b74></div> <div class="output-area" data-v-96507b74><div class="show-toggle" data-v-96507b74><i class="ei-angle-up" data-v-96507b74></i> <span class="show-text" data-v-96507b74></span></div> <div style="display:;" data-v-96507b74></div></div></div> <div class="powered-by" data-v-96507b74>
Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使 <a href="/cnchar/v2/doc/cnchar">cnchar</a> </p></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev"> Powered by <a target="view_window" href="https://github.com/theajack/jsbox" class="jsbox-link" data-v-96507b74><i class="ei-cube-alt" data-v-96507b74></i> JSBox</a></div></div></div> <p>使 <a href="/cnchar/v2/doc/cnchar">cnchar</a> </p></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/cnchar/guide/" class="prev router-link-active"> <a href="/guide/" class="prev router-link-active">
简介 简介
</a></span> <span class="next"><a href="/cnchar/doc/cnchar.html"> </a></span> <span class="next"><a href="/doc/cnchar.html">
文档 文档
</a> </a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div> </span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/20.b8f6cf9e.js" defer></script><script src="/cnchar/assets/js/3.79e54f24.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/20.b8f6cf9e.js" defer></script><script src="/assets/js/3.78228900.js" defer></script>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@ -8,35 +8,35 @@
<meta name="generator" content="VuePress 1.4.0"> <meta name="generator" content="VuePress 1.4.0">
<link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico"> <link rel="icon" href="https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico">
<link rel="preload" href="/cnchar/assets/css/0.styles.dcd81eba.css" as="style"><link rel="preload" href="/cnchar/assets/js/app.3d5a33c2.js" as="script"><link rel="preload" href="/cnchar/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/cnchar/assets/js/8.f01c3380.js" as="script"><link rel="preload" href="/cnchar/assets/js/4.dec2fc6b.js" as="script"><link rel="prefetch" href="/cnchar/assets/js/10.eeab0d04.js"><link rel="prefetch" href="/cnchar/assets/js/11.7d5ff5df.js"><link rel="prefetch" href="/cnchar/assets/js/12.cb64600b.js"><link rel="prefetch" href="/cnchar/assets/js/13.b8427796.js"><link rel="prefetch" href="/cnchar/assets/js/14.8cb74a49.js"><link rel="prefetch" href="/cnchar/assets/js/15.6d40aa8a.js"><link rel="prefetch" href="/cnchar/assets/js/16.6843fc0d.js"><link rel="prefetch" href="/cnchar/assets/js/17.d8524e84.js"><link rel="prefetch" href="/cnchar/assets/js/18.35eb0643.js"><link rel="prefetch" href="/cnchar/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/cnchar/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/cnchar/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/cnchar/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/cnchar/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/cnchar/assets/js/24.45be5988.js"><link rel="prefetch" href="/cnchar/assets/js/25.54b888ce.js"><link rel="prefetch" href="/cnchar/assets/js/3.79e54f24.js"><link rel="prefetch" href="/cnchar/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/cnchar/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/cnchar/assets/js/7.67523f2c.js"><link rel="prefetch" href="/cnchar/assets/js/9.b0989f22.js"> <link rel="preload" href="/assets/css/0.styles.b36a32f7.css" as="style"><link rel="preload" href="/assets/js/app.cfb76f2a.js" as="script"><link rel="preload" href="/assets/js/2.2bb98858.js" as="script"><link rel="preload" href="/assets/js/8.f01c3380.js" as="script"><link rel="preload" href="/assets/js/4.8112a995.js" as="script"><link rel="prefetch" href="/assets/js/10.70b04062.js"><link rel="prefetch" href="/assets/js/11.78652d04.js"><link rel="prefetch" href="/assets/js/12.b80cc33e.js"><link rel="prefetch" href="/assets/js/13.d4f7bb58.js"><link rel="prefetch" href="/assets/js/14.269f05ae.js"><link rel="prefetch" href="/assets/js/15.7fadafaf.js"><link rel="prefetch" href="/assets/js/16.d1e8d47d.js"><link rel="prefetch" href="/assets/js/17.d8524e84.js"><link rel="prefetch" href="/assets/js/18.35eb0643.js"><link rel="prefetch" href="/assets/js/19.9ae02a37.js"><link rel="prefetch" href="/assets/js/20.b8f6cf9e.js"><link rel="prefetch" href="/assets/js/21.b802ee0e.js"><link rel="prefetch" href="/assets/js/22.8c6ee530.js"><link rel="prefetch" href="/assets/js/23.225aa3b8.js"><link rel="prefetch" href="/assets/js/24.45be5988.js"><link rel="prefetch" href="/assets/js/25.54b888ce.js"><link rel="prefetch" href="/assets/js/3.78228900.js"><link rel="prefetch" href="/assets/js/5.deec3d8c.js"><link rel="prefetch" href="/assets/js/6.e1333a1f.js"><link rel="prefetch" href="/assets/js/7.67523f2c.js"><link rel="prefetch" href="/assets/js/9.cad83506.js">
<link rel="stylesheet" href="/cnchar/assets/css/0.styles.dcd81eba.css"> <link rel="stylesheet" href="/assets/css/0.styles.b36a32f7.css">
</head> </head>
<body> <body>
<div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/cnchar/" class="home-link router-link-exact-active router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/cnchar/" class="nav-link router-link-exact-active router-link-active"> <div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-exact-active router-link-active"><!----> <span class="site-name">cnchar</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link router-link-exact-active router-link-active">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -44,31 +44,31 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/cnchar/" class="nav-link router-link-exact-active router-link-active"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link router-link-exact-active router-link-active">
主页 主页
</a></div><div class="nav-item"><a href="/cnchar/guide/" class="nav-link"> </a></div><div class="nav-item"><a href="/guide/" class="nav-link">
使用说明 使用说明
</a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></div><div class="nav-item"><a href="https://www.github.com/theajack/cnchar" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/cnchar/doc/cnchar.html" class="nav-link"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/doc/cnchar.html" class="nav-link">
cnchar: 拼音+笔画 cnchar: 拼音+笔画
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/poly.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/poly.html" class="nav-link">
cnchar-poly: 多音词 cnchar-poly: 多音词
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/order.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/order.html" class="nav-link">
cnchar-order: 笔顺 cnchar-order: 笔顺
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/trad.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/trad.html" class="nav-link">
cnchar-trad: 繁体字 cnchar-trad: 繁体字
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/draw.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/draw.html" class="nav-link">
cnchar-draw: 汉字可视化 cnchar-draw: 汉字可视化
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/idiom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/idiom.html" class="nav-link">
cnchar-idiom: 成语 cnchar-idiom: 成语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/xhy.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/xhy.html" class="nav-link">
cnchar-xhy: 歇后语 cnchar-xhy: 歇后语
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/radical.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/radical.html" class="nav-link">
cnchar-radical: 偏旁部首 cnchar-radical: 偏旁部首
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/tool.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/tool.html" class="nav-link">
工具方法 工具方法
</a></li><li class="dropdown-item"><!----> <a href="/cnchar/doc/custom.html" class="nav-link"> </a></li><li class="dropdown-item"><!----> <a href="/doc/custom.html" class="nav-link">
自定义数据 自定义数据
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external"> </a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="" class="dropdown-title"><span class="title"></span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://www.github.com/theajack" target="_blank" rel="noopener noreferrer" class="nav-link external">
GitHub地址 GitHub地址
@ -76,8 +76,8 @@
Gitee地址 Gitee地址
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://blog.csdn.net/yanxiaomu" target="_blank" rel="noopener noreferrer" class="nav-link external">
CSDN账号 CSDN账号
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <!----> </aside> <main class="page"> <div class="theme-default-content content__default"><div><div class="home-wrapper"><div><img src="/cnchar/assets/img/logo.6cd28633.png" alt srcset class="logo"></div> <div class="title">cnchar</div> <div class="desc">js</div> <div class="test"><div class="test-input el-input"><!----><input type="text" autocomplete="off" placeholder="" class="el-input__inner"><!----><!----><!----><!----></div> <div class="show-area" style="display:none;"><div> <span class="split">|</span> </div> <div>: <span class="split">|</span> : </div> <div>: </div> <div id="draw-area"></div></div></div> <div class="start-w"><button type="button" class="el-button el-button--primary"><!----><!----><span> <i class="ei-location-arrow"></i></span></button> <button type="button" class="el-button el-button--primary"><!----><!----><span> <i class="ei-play"></i></span></button></div> <div class="feature-w"><div class="f-i"><div class="f-t"><i class="ei-rocket"></i></div> <div class="f-des">/</div> <div class="f-des"></div> <div class="f-des">/</div> <div class="f-des">/</div> <div class="f-des"></div> <div class="f-des">/</div> <div class="f-des">...</div></div> <div class="f-i"><div class="f-t"><i class="ei-tablet"></i></div> <div class="f-des"></div> <div class="f-des">nodejs</div> <div class="f-des">/</div> <div class="f-des">ReactNative/Weex/Uniapp/Electron</div> <div class="f-des">webpack</div> <div class="f-des">typescript</div> <div class="f-des">...</div></div> <div class="f-i"><div class="f-t"><i class="ei-cubes"></i></div> <div class="f-des"></div> <div class="f-des"></div> <div class="f-des"></div> <div class="f-des"></div> <div class="f-des">npm</div> <div class="f-des">cdn</div> <div class="f-des">...</div></div></div> <div class="copy-right">MIT Licensed | Copyright © 2020 present <a href="https://www.github.com/theajack" target="view_window">theajack</a></div></div></div></div> <footer class="page-edit"><!----> <!----></footer> <!----> </main></div><div class="global-ui"><!----><div></div></div></div> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav> <!----> </aside> <main class="page"> <div class="theme-default-content content__default"><div><div class="home-wrapper"><div><img src="/assets/img/logo.6cd28633.png" alt srcset class="logo"></div> <div class="title">cnchar</div> <div class="desc">js</div> <div class="test"><div class="test-input el-input"><!----><input type="text" autocomplete="off" placeholder="" class="el-input__inner"><!----><!----><!----><!----></div> <div class="show-area" style="display:none;"><div> <span class="split">|</span> </div> <div>: <span class="split">|</span> : </div> <div>: </div> <div id="draw-area"></div></div></div> <div class="start-w"><button type="button" class="el-button el-button--primary"><!----><!----><span> <i class="ei-location-arrow"></i></span></button> <button type="button" class="el-button el-button--primary"><!----><!----><span> <i class="ei-play"></i></span></button></div> <div class="feature-w"><div class="f-i"><div class="f-t"><i class="ei-rocket"></i></div> <div class="f-des">/</div> <div class="f-des"></div> <div class="f-des">/</div> <div class="f-des">/</div> <div class="f-des"></div> <div class="f-des">/</div> <div class="f-des">...</div></div> <div class="f-i"><div class="f-t"><i class="ei-tablet"></i></div> <div class="f-des"></div> <div class="f-des">nodejs</div> <div class="f-des">/</div> <div class="f-des">ReactNative/Weex/Uniapp/Electron</div> <div class="f-des">webpack</div> <div class="f-des">typescript</div> <div class="f-des">...</div></div> <div class="f-i"><div class="f-t"><i class="ei-cubes"></i></div> <div class="f-des"></div> <div class="f-des"></div> <div class="f-des"></div> <div class="f-des"></div> <div class="f-des">npm</div> <div class="f-des">cdn</div> <div class="f-des">...</div></div></div> <div class="copy-right">MIT Licensed | Copyright © 2020 present <a href="https://www.github.com/theajack" target="view_window">theajack</a></div></div></div></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">12/9/2020, 3:40:54 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/assets/js/app.3d5a33c2.js" defer></script><script src="/cnchar/assets/js/2.2bb98858.js" defer></script><script src="/cnchar/assets/js/8.f01c3380.js" defer></script><script src="/cnchar/assets/js/4.dec2fc6b.js" defer></script> <script src="/assets/js/app.cfb76f2a.js" defer></script><script src="/assets/js/2.2bb98858.js" defer></script><script src="/assets/js/8.f01c3380.js" defer></script><script src="/assets/js/4.8112a995.js" defer></script>
<script> <script>
var _mtac = {}; var _mtac = {};
(function () { (function () {

View File

@ -2,7 +2,8 @@ module.exports = {
title: 'cnchar', // 标题 title: 'cnchar', // 标题
description: '功能全面、多端支持的汉字拼音笔画js库', // 描述 description: '功能全面、多端支持的汉字拼音笔画js库', // 描述
dest: './docs/', // 基本url dest: './docs/', // 基本url
base: '/cnchar/', // base: '/cnchar/',
base: '/',
// 注入到当前页面的 HTML <head> 中的标签 // 注入到当前页面的 HTML <head> 中的标签
head: [ head: [
['link', {rel: 'icon', href: 'https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico'}], // 增加一个自定义的 favicon ['link', {rel: 'icon', href: 'https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/assets/v1/images/i.ico'}], // 增加一个自定义的 favicon