docs: 文档2.0

This commit is contained in:
tackchen 2020-04-13 17:46:07 +08:00
parent 8c4303ffb7
commit bd025ce497
36 changed files with 109 additions and 64 deletions

View File

@ -10,7 +10,7 @@
</head>
<body>
<script>
window.location.href = 'https://theajack.gitee.io/cnchar/v2'
window.location.href = 'https://'+window.location.host+'/cnchar/v2'
</script>
</body>
</html>

View File

@ -1,10 +1,17 @@
import event from './event';
import {parseUrlParam} from './util';
let jsbox = null;
const url = 'https://theajack.gitee.io/jsbox?theme=dark&remind=false';
function getUrl () {
if (window.location.host.indexOf('localhost') !== -1) {
return 'https://theajack.gitee.io/jsbox?theme=dark&remind=false';
}
return `${window.location.protocol}//${window.location.host}/jsbox?theme=dark&remind=false`;
}
function main () {
if (jsbox !== null) {
return;
return jsbox;
}
hackConsole();
initStyle();
@ -20,10 +27,19 @@ function main () {
document.body.style.overflow = 'auto';
}
function id (_id = '') {
if (jsbox._id !== _id) {
let iframeId = _id;
try {
var iframeWindow = iframe.contentWindow;
var search = iframeWindow.document.location.search;
if (search) {
iframeId = parseUrlParam(search, 'id');
}
} catch (e) {
}
if (jsbox._id !== _id || iframeId !== _id) {
jsbox._id = _id;
const config = (location.host.indexOf('localhost') !== -1) ? 'http://localhost:8080/config.js' : 'https://cdn.jsdelivr.net/gh/theajack/cnchar/docs/config.js';
jsbox.url = `${url}&config=${encodeURIComponent(config)}&id=${_id}`;
jsbox.url = `${getUrl()}&config=${encodeURIComponent(config)}&id=${_id}`;
iframe.src = jsbox.url;
}
open();
@ -31,7 +47,7 @@ function main () {
function code (_code = '') {
if (jsbox._code !== _code) {
jsbox._code = _code;
jsbox.url = `${url}&code=${encodeURIComponent(code)}`;
jsbox.url = `${getUrl()}&code=${encodeURIComponent(code)}`;
iframe.src = jsbox.url;
}
open();

View File

@ -85,4 +85,33 @@ export function copy (str) {
} catch (err) {
return false;
}
};
};
export function getUrlParam (name, defVal) {
return parseUrlParam(window.location.search, name, defVal);
}
export function parseUrlParam (search, name, defVal) {
if (search[search.length - 1] === '/') {
search = search.substr(0, search.length - 1);
}
if (typeof name !== 'undefined') {
if (search !== '') {
let reg = new RegExp('(^|&)' + name + '=([^&]*?)(&|$)', 'i');
let r = search.substr(1).match(reg);
if (r != null) {
return unescape(r[2]);
}
}
return (typeof defVal !== 'undefined') ? defVal : null;
}
if (search === '') { return {}; }
let arr = search.substr(1).split('&');
let param = {};
arr.forEach(item => {
let pArr = item.split('=');
param[pArr[0]] = pArr[1];
});
return param;
}

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

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{620:function(r,t,n){"use strict";n.r(t);var a=n(21),c=Object(a.a)({},(function(){var r=this,t=r.$createElement,n=r._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[n("h2",{attrs:{id:"_1-介绍"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[r._v("#")]),r._v(" 1. 介绍")]),r._v(" "),n("p",[n("code",[r._v("cnchar-trad")]),r._v(" 库是用于繁体字,除此之外,该库还提供繁体、简体、火星文之间的相互转换")]),r._v(" "),n("p",[r._v("引入该库之后cnchar的所有api都支持 "),n("code",[r._v("simple")]),r._v("和"),n("code",[r._v("trad")]),r._v("参数,用于只使用简体或繁体,默认两种字体都使用")]),r._v(" "),n("p",[r._v("npm安装")]),r._v(" "),n("div",{staticClass:"language- extra-class"},[n("pre",{pre:!0,attrs:{class:"language-text"}},[n("code",[r._v("npm i cnchar-trad\n")])])]),n("p",[r._v("cdn使用")]),r._v(" "),n("div",[n("highlight-code",{attrs:{lang:"html"}},[r._v('\n<script src="https://cdn.jsdelivr.net/npm/cnchar-trad/cnchar.trad.min.js"><\/script>\n ')])],1),r._v(" "),n("p",[r._v("使用")]),r._v(" "),n("div",[n("highlight-code",{attrs:{lang:"javascript"}},[r._v("\nimport cnchar from 'cnchar';\nimport trad from 'cnchar-trad';\ncnchar.use(trad); // use 在浏览器环境中非必须\n ")])],1),r._v(" "),n("h2",{attrs:{id:"_2-繁体字支持"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_2-繁体字支持"}},[r._v("#")]),r._v(" 2. 繁体字支持")]),r._v(" "),n("p",[r._v("以下演示几个繁体字支持的例子")]),r._v(" "),n("p",[n("codebox",{attrs:{id:"trad"}})],1),r._v(" "),n("h2",{attrs:{id:"_3-字体转换-convert"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_3-字体转换-convert"}},[r._v("#")]),r._v(" 3. 字体转换(convert)")]),r._v(" "),n("p",[r._v("引入 cnchar-trad 库之后在cnchar上会生成一个 "),n("code",[r._v("convert")]),r._v(" 对象功能是支持字体转换另外在string.prototype 上也会附加上对应的方法,用法如下:")]),r._v(" "),n("div",[n("highlight-code",{attrs:{lang:"javascript"}},[r._v("\ncnchar.convert.simpleToTrad(string); // 简体 => 繁体\ncnchar.convert.simpleToSpark(string); // 简体 => 火星文\ncnchar.convert.tradToSimple(string); // 繁体 => 简体\ncnchar.convert.tradToSpark(string); // 繁体 => 火星文\ncnchar.convert.sparkToSimple(string); // 火星文 => 简体\ncnchar.convert.sparkToTrad(string); // 火星文 => 繁体\nstring.convertSimpleToTrad();\nstring.convertSimpleToSpark();\nstring.convertTradToSimple();\nstring.convertTradToSpark();\nstring.convertSparkToSimple();\nstring.convertSparkToTrad();\n ")])],1),r._v(" "),n("p",[r._v("以下是几个实例:")]),r._v(" "),n("p",[n("codebox",{attrs:{id:"convert"}})],1)])}),[],!1,null,null,null);t.default=c.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{628:function(r,t,n){"use strict";n.r(t);var a=n(21),c=Object(a.a)({},(function(){var r=this,t=r.$createElement,n=r._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[n("h2",{attrs:{id:"_1-介绍"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_1-介绍"}},[r._v("#")]),r._v(" 1. 介绍")]),r._v(" "),n("p",[n("code",[r._v("cnchar-trad")]),r._v(" 库是用于繁体字,除此之外,该库还提供繁体、简体、火星文之间的相互转换")]),r._v(" "),n("p",[r._v("引入该库之后cnchar的所有api都支持 "),n("code",[r._v("simple")]),r._v("和"),n("code",[r._v("trad")]),r._v("参数,用于只使用简体或繁体,默认两种字体都使用")]),r._v(" "),n("p",[r._v("npm安装")]),r._v(" "),n("div",{staticClass:"language- extra-class"},[n("pre",{pre:!0,attrs:{class:"language-text"}},[n("code",[r._v("npm i cnchar-trad\n")])])]),n("p",[r._v("cdn使用")]),r._v(" "),n("div",[n("highlight-code",{attrs:{lang:"html"}},[r._v('\n<script src="https://cdn.jsdelivr.net/npm/cnchar-trad/cnchar.trad.min.js"><\/script>\n ')])],1),r._v(" "),n("p",[r._v("使用")]),r._v(" "),n("div",[n("highlight-code",{attrs:{lang:"javascript"}},[r._v("\nimport cnchar from 'cnchar';\nimport trad from 'cnchar-trad';\ncnchar.use(trad); // use 在浏览器环境中非必须\n ")])],1),r._v(" "),n("h2",{attrs:{id:"_2-繁体字支持"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_2-繁体字支持"}},[r._v("#")]),r._v(" 2. 繁体字支持")]),r._v(" "),n("p",[r._v("以下演示几个繁体字支持的例子")]),r._v(" "),n("p",[n("codebox",{attrs:{id:"trad"}})],1),r._v(" "),n("h2",{attrs:{id:"_3-字体转换-convert"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#_3-字体转换-convert"}},[r._v("#")]),r._v(" 3. 字体转换(convert)")]),r._v(" "),n("p",[r._v("引入 cnchar-trad 库之后在cnchar上会生成一个 "),n("code",[r._v("convert")]),r._v(" 对象功能是支持字体转换另外在string.prototype 上也会附加上对应的方法,用法如下:")]),r._v(" "),n("div",[n("highlight-code",{attrs:{lang:"javascript"}},[r._v("\ncnchar.convert.simpleToTrad(string); // 简体 => 繁体\ncnchar.convert.simpleToSpark(string); // 简体 => 火星文\ncnchar.convert.tradToSimple(string); // 繁体 => 简体\ncnchar.convert.tradToSpark(string); // 繁体 => 火星文\ncnchar.convert.sparkToSimple(string); // 火星文 => 简体\ncnchar.convert.sparkToTrad(string); // 火星文 => 繁体\nstring.convertSimpleToTrad();\nstring.convertSimpleToSpark();\nstring.convertTradToSimple();\nstring.convertTradToSpark();\nstring.convertSparkToSimple();\nstring.convertSparkToTrad();\n ")])],1),r._v(" "),n("p",[r._v("以下是几个实例:")]),r._v(" "),n("p",[n("codebox",{attrs:{id:"convert"}})],1)])}),[],!1,null,null,null);t.default=c.exports}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{622:function(r,c,a){"use strict";a.r(c);var n=a(21),t=Object(n.a)({},(function(){var r=this,c=r.$createElement,a=r._self._c||c;return a("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[a("h2",{attrs:{id:"_1-npm安装"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_1-npm安装"}},[r._v("#")]),r._v(" 1. npm安装")]),r._v(" "),a("p",[r._v("cnchar包含了一个基本库和四个功能库用于实现不同的功能您可以按需安装其中的功能库但是 "),a("code",[r._v("cnchar")]),r._v(" 这个基础库是必须安装的")]),r._v(" "),a("p",[r._v("安装"),a("a",{attrs:{href:"https://npmjs.com/package/cnchar",target:"_blank",rel:"noopener noreferrer"}},[r._v("主库"),a("OutboundLink")],1),r._v("")]),r._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[r._v("npm i cnchar\n")])])]),a("p",[r._v("按需安装功能库:")]),r._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[r._v("npm i cnchar-poly cnchar-order cnchar-trad cnchar-draw\n")])])]),a("p",[r._v("浏览器环境中功能库可以直接使用:")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n import cnchar from 'cnchar';\n // 以下功能库请按需使用\n import 'cnchar-poly';\n import 'cnchar-order';\n import 'cnchar-trad';\n import 'cnchar-draw';\n ")])],1),r._v(" "),a("p",[r._v("非浏览器环境中功能库需要使用use方法加载且不支持 "),a("code",[r._v("cnchar-draw")]),r._v(" 库:")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n import cnchar from 'cnchar';\n // 以下功能库请按需使用\n import poly from 'cnchar-poly';\n import order from 'cnchar-order';\n import trad from 'cnchar-trad';\n cnchar.use(poly, order, trad);\n ")])],1),r._v(" "),a("p",[r._v("commonjs 模块")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n var cnchar = require('cnchar');\n // 以下功能库请按需使用\n var poly = require('cnchar-poly');\n var order = require('cnchar-order');\n var trad = require('cnchar-trad');\n cnchar.use(poly, order, trad);\n ")])],1),r._v(" "),a("h2",{attrs:{id:"_2-cdn引用"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_2-cdn引用"}},[r._v("#")]),r._v(" 2. CDN引用")]),r._v(" "),a("p",[r._v("使用 script 标签使用:")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"html"}},[r._v('\n <script src="https://cdn.jsdelivr.net/npm/cnchar/cnchar.min.js"><\/script>\n \x3c!--以下功能库请按需使用--\x3e\n <script src="https://cdn.jsdelivr.net/npm/cnchar-poly/cnchar.poly.min.js"><\/script>\n <script src="https://cdn.jsdelivr.net/npm/cnchar-order/cnchar.order.min.js"><\/script>\n <script src="https://cdn.jsdelivr.net/npm/cnchar-trad/cnchar.trad.min.js"><\/script>\n <script src="https://cdn.jsdelivr.net/npm/cnchar-draw/cnchar.draw.min.js"><\/script>\n ')])],1),r._v(" "),a("h2",{attrs:{id:"_3-cnchar-all"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-cnchar-all"}},[r._v("#")]),r._v(" 3. cnchar-all")]),r._v(" "),a("p",[r._v("如果您需要使用cnchar及其插件的所有功能可以通过安装"),a("code",[r._v("cnchar-all")]),r._v("来使用完整功能,这个库引用了上面的五个库")]),r._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[r._v("npm i cnchar-all\n")])])]),a("p",[r._v("commonjs 模块")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n import cnchar from 'cnchar-all';\n ")])],1),r._v(" "),a("p",[r._v("cdn方式")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"html"}},[r._v('\n <script src="https://cdn.jsdelivr.net/npm/cnchar-all/cnchar.all.min.js"><\/script>\n ')])],1),r._v(" "),a("h2",{attrs:{id:"_4-简单使用"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_4-简单使用"}},[r._v("#")]),r._v(" 4. 简单使用")]),r._v(" "),a("p",[r._v("cnchar 具有两个最核心的方法"),a("code",[r._v("spell")]),r._v(" 和 "),a("code",[r._v("stroke")]),r._v(",分别用于获取汉字的拼音和笔画数:")]),r._v(" "),a("p",[a("codebox",{attrs:{id:"easy-use",title:"spell/stroke"}})],1),r._v(" "),a("p",[r._v("这只是一个最简单的使用,这两个方法具有很多参数可选,具体请参阅 "),a("a",{attrs:{href:""}},[r._v("cnchar")]),r._v(" 部分")])])}),[],!1,null,null,null);c.default=t.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{625:function(r,c,a){"use strict";a.r(c);var n=a(21),t=Object(n.a)({},(function(){var r=this,c=r.$createElement,a=r._self._c||c;return a("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[a("h2",{attrs:{id:"_1-npm安装"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_1-npm安装"}},[r._v("#")]),r._v(" 1. npm安装")]),r._v(" "),a("p",[r._v("cnchar包含了一个基本库和四个功能库用于实现不同的功能您可以按需安装其中的功能库但是 "),a("code",[r._v("cnchar")]),r._v(" 这个基础库是必须安装的")]),r._v(" "),a("p",[r._v("安装"),a("a",{attrs:{href:"https://npmjs.com/package/cnchar",target:"_blank",rel:"noopener noreferrer"}},[r._v("主库"),a("OutboundLink")],1),r._v("")]),r._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[r._v("npm i cnchar\n")])])]),a("p",[r._v("按需安装功能库:")]),r._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[r._v("npm i cnchar-poly cnchar-order cnchar-trad cnchar-draw\n")])])]),a("p",[r._v("浏览器环境中功能库可以直接使用:")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n import cnchar from 'cnchar';\n // 以下功能库请按需使用\n import 'cnchar-poly';\n import 'cnchar-order';\n import 'cnchar-trad';\n import 'cnchar-draw';\n ")])],1),r._v(" "),a("p",[r._v("非浏览器环境中功能库需要使用use方法加载且不支持 "),a("code",[r._v("cnchar-draw")]),r._v(" 库:")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n import cnchar from 'cnchar';\n // 以下功能库请按需使用\n import poly from 'cnchar-poly';\n import order from 'cnchar-order';\n import trad from 'cnchar-trad';\n cnchar.use(poly, order, trad);\n ")])],1),r._v(" "),a("p",[r._v("commonjs 模块")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n var cnchar = require('cnchar');\n // 以下功能库请按需使用\n var poly = require('cnchar-poly');\n var order = require('cnchar-order');\n var trad = require('cnchar-trad');\n cnchar.use(poly, order, trad);\n ")])],1),r._v(" "),a("h2",{attrs:{id:"_2-cdn引用"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_2-cdn引用"}},[r._v("#")]),r._v(" 2. CDN引用")]),r._v(" "),a("p",[r._v("使用 script 标签使用:")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"html"}},[r._v('\n <script src="https://cdn.jsdelivr.net/npm/cnchar/cnchar.min.js"><\/script>\n \x3c!--以下功能库请按需使用--\x3e\n <script src="https://cdn.jsdelivr.net/npm/cnchar-poly/cnchar.poly.min.js"><\/script>\n <script src="https://cdn.jsdelivr.net/npm/cnchar-order/cnchar.order.min.js"><\/script>\n <script src="https://cdn.jsdelivr.net/npm/cnchar-trad/cnchar.trad.min.js"><\/script>\n <script src="https://cdn.jsdelivr.net/npm/cnchar-draw/cnchar.draw.min.js"><\/script>\n ')])],1),r._v(" "),a("h2",{attrs:{id:"_3-cnchar-all"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-cnchar-all"}},[r._v("#")]),r._v(" 3. cnchar-all")]),r._v(" "),a("p",[r._v("如果您需要使用cnchar及其插件的所有功能可以通过安装"),a("code",[r._v("cnchar-all")]),r._v("来使用完整功能,这个库引用了上面的五个库")]),r._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[r._v("npm i cnchar-all\n")])])]),a("p",[r._v("commonjs 模块")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"javascript"}},[r._v("\n import cnchar from 'cnchar-all';\n ")])],1),r._v(" "),a("p",[r._v("cdn方式")]),r._v(" "),a("div",[a("highlight-code",{attrs:{lang:"html"}},[r._v('\n <script src="https://cdn.jsdelivr.net/npm/cnchar-all/cnchar.all.min.js"><\/script>\n ')])],1),r._v(" "),a("h2",{attrs:{id:"_4-简单使用"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_4-简单使用"}},[r._v("#")]),r._v(" 4. 简单使用")]),r._v(" "),a("p",[r._v("cnchar 具有两个最核心的方法"),a("code",[r._v("spell")]),r._v(" 和 "),a("code",[r._v("stroke")]),r._v(",分别用于获取汉字的拼音和笔画数:")]),r._v(" "),a("p",[a("codebox",{attrs:{id:"easy-use",title:"spell/stroke"}})],1),r._v(" "),a("p",[r._v("这只是一个最简单的使用,这两个方法具有很多参数可选,具体请参阅 "),a("a",{attrs:{href:""}},[r._v("cnchar")]),r._v(" 部分")])])}),[],!1,null,null,null);c.default=t.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

View File

@ -1 +0,0 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{613:function(n,w,o){}}]);

View File

@ -0,0 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{615:function(n,w,o){}}]);

View File

@ -1,4 +1,4 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{612:function(e,t,n){
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{614:function(e,t,n){
/*!
* Valine v1.4.4
* (c) 2017-2020 xCss

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([[4],{535:function(t,s,a){},608:function(t,s,a){t.exports=a.p+"assets/img/logo.6cd28633.png"},609:function(t,s,a){"use strict";var i=a(535);a.n(i).a},619:function(t,s,a){"use strict";a.r(s);var i=[function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("img",{staticClass:"logo",attrs:{src:a(608),alt:"",srcset:""}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"feature-w"},[a("div",{staticClass:"f-i"},[a("div",{staticClass:"f-t"},[a("i",{staticClass:"ei-rocket"}),t._v("功能全面")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("拼音、笔画数")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("多音字词")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("繁体字、火星文")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("汉字笔顺")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("多种模式绘制汉字")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("汉字推算")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("...")])]),t._v(" "),a("div",{staticClass:"f-i"},[a("div",{staticClass:"f-t"},[a("i",{staticClass:"ei-tablet"}),t._v("多端支持")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("浏览器")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("nodejs")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("小程序/小游戏")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("ReactNative/Weex/Uniapp/Electron")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("webpack")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("typescript支持")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("...")])]),t._v(" "),a("div",{staticClass:"f-i"},[a("div",{staticClass:"f-t"},[a("i",{staticClass:"ei-cubes"}),t._v("按需取用")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("功能分包")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("体积小巧")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("简单易用")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("npm")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("cdn")])])])},function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"copy-right"},[this._v("MIT Licensed | Copyright © 2020 present "),s("a",{attrs:{href:"https://www.github.com/theajack",target:"view_window"}},[this._v("theajack")])])}],e=(a(198),a(39),a(57),a(94),{data:function(){return{text:"",spell:"",stroke:"",trad:"",spark:"",order:""}},methods:{input:function(){if(this.text){this.spell=this.text.spell("array","tone").join(" "),this.stroke=this.text.stroke(),this.trad=this.text.convertSimpleToTrad("trad"),this.spark=this.text.convertSimpleToSpark("spark"),this.order=JSON.stringify(this.text.stroke("order","shape")).replace(/"/g,"").replace(/null/g,"无");var t=this.pickCnChar(this.text),s=document.getElementById("draw-area");s.innerHTML="",""!==t&&window.cnchar.draw(t,{el:s})}},isCnChar:function(t){var s=t.charCodeAt(0);return s>=19968&&s<=40869},pickCnChar:function(t){for(var s="",a=0;a<t.length;a++)this.isCnChar(t[a])&&(s+=t[a]);return s},start:function(){window.location.href="/cnchar/guide/"}},mounted:function(){var t=setInterval((function(){var s=document.getElementById("vcomments");s&&(s.className+=" home-comment",clearInterval(t))}),500)}}),v=(a(609),a(21)),r=Object(v.a)(e,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"home-wrapper"},[t._m(0),t._v(" "),a("div",{staticClass:"title"},[t._v("cnchar")]),t._v(" "),a("div",{staticClass:"desc"},[t._v("功能全面、多端支持的汉字拼音笔画js库")]),t._v(" "),a("div",{staticClass:"test"},[a("el-input",{staticClass:"test-input",attrs:{type:"text",placeholder:"输入一些汉字试试"},on:{input:t.input},model:{value:t.text,callback:function(s){t.text=s},expression:"text"}}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:""!==t.text,expression:'text!==""'}],staticClass:"show-area"},[a("div",[t._v(t._s(t.spell)+" "),a("span",{staticClass:"split"},[t._v("|")]),t._v(" 共"+t._s(t.stroke)+"笔")]),t._v(" "),a("div",[t._v("繁体: "+t._s(t.trad)+" "),a("span",{staticClass:"split"},[t._v("|")]),t._v(" 火星文: "+t._s(t.spark))]),t._v(" "),a("div",[t._v("笔顺: "+t._s(t.order))]),t._v(" "),a("div",{attrs:{id:"draw-area"}})])],1),t._v(" "),a("div",{staticClass:"start-w"},[a("el-button",{attrs:{type:"primary"},on:{click:t.start}},[t._v("开始 "),a("i",{staticClass:"ei-location-arrow"})])],1),t._v(" "),t._m(1),t._v(" "),t._m(2)])}),i,!1,null,null,null);s.default=r.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{534:function(t,s,a){},606:function(t,s,a){t.exports=a.p+"assets/img/logo.6cd28633.png"},607:function(t,s,a){"use strict";var i=a(534);a.n(i).a},619:function(t,s,a){"use strict";a.r(s);var i=[function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("img",{staticClass:"logo",attrs:{src:a(606),alt:"",srcset:""}})])},function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"feature-w"},[a("div",{staticClass:"f-i"},[a("div",{staticClass:"f-t"},[a("i",{staticClass:"ei-rocket"}),t._v("功能全面")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("拼音、笔画数")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("多音字词")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("繁体字、火星文")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("汉字笔顺")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("多种模式绘制汉字")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("汉字推算")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("...")])]),t._v(" "),a("div",{staticClass:"f-i"},[a("div",{staticClass:"f-t"},[a("i",{staticClass:"ei-tablet"}),t._v("多端支持")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("浏览器")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("nodejs")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("小程序/小游戏")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("ReactNative/Weex/Uniapp/Electron")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("webpack")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("typescript支持")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("...")])]),t._v(" "),a("div",{staticClass:"f-i"},[a("div",{staticClass:"f-t"},[a("i",{staticClass:"ei-cubes"}),t._v("按需取用")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("功能分包")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("体积小巧")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("简单易用")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("npm")]),t._v(" "),a("div",{staticClass:"f-des"},[t._v("cdn")])])])},function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"copy-right"},[this._v("MIT Licensed | Copyright © 2020 present "),s("a",{attrs:{href:"https://www.github.com/theajack",target:"view_window"}},[this._v("theajack")])])}],e=(a(198),a(39),a(57),a(96),{data:function(){return{text:"",spell:"",stroke:"",trad:"",spark:"",order:""}},methods:{input:function(){if(this.text){this.spell=this.text.spell("array","tone").join(" "),this.stroke=this.text.stroke(),this.trad=this.text.convertSimpleToTrad("trad"),this.spark=this.text.convertSimpleToSpark("spark"),this.order=JSON.stringify(this.text.stroke("order","shape")).replace(/"/g,"").replace(/null/g,"无");var t=this.pickCnChar(this.text),s=document.getElementById("draw-area");s.innerHTML="",""!==t&&window.cnchar.draw(t,{el:s})}},isCnChar:function(t){var s=t.charCodeAt(0);return s>=19968&&s<=40869},pickCnChar:function(t){for(var s="",a=0;a<t.length;a++)this.isCnChar(t[a])&&(s+=t[a]);return s},start:function(){window.location.href="/cnchar/guide/"}},mounted:function(){var t=setInterval((function(){var s=document.getElementById("vcomments");s&&(s.className+=" home-comment",clearInterval(t))}),500)}}),v=(a(607),a(21)),r=Object(v.a)(e,(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"home-wrapper"},[t._m(0),t._v(" "),a("div",{staticClass:"title"},[t._v("cnchar")]),t._v(" "),a("div",{staticClass:"desc"},[t._v("功能全面、多端支持的汉字拼音笔画js库")]),t._v(" "),a("div",{staticClass:"test"},[a("el-input",{staticClass:"test-input",attrs:{type:"text",placeholder:"输入一些汉字试试"},on:{input:t.input},model:{value:t.text,callback:function(s){t.text=s},expression:"text"}}),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:""!==t.text,expression:'text!==""'}],staticClass:"show-area"},[a("div",[t._v(t._s(t.spell)+" "),a("span",{staticClass:"split"},[t._v("|")]),t._v(" 共"+t._s(t.stroke)+"笔")]),t._v(" "),a("div",[t._v("繁体: "+t._s(t.trad)+" "),a("span",{staticClass:"split"},[t._v("|")]),t._v(" 火星文: "+t._s(t.spark))]),t._v(" "),a("div",[t._v("笔顺: "+t._s(t.order))]),t._v(" "),a("div",{attrs:{id:"draw-area"}})])],1),t._v(" "),a("div",{staticClass:"start-w"},[a("el-button",{attrs:{type:"primary"},on:{click:t.start}},[t._v("开始 "),a("i",{staticClass:"ei-location-arrow"})])],1),t._v(" "),t._m(1),t._v(" "),t._m(2)])}),i,!1,null,null,null);s.default=r.exports}}]);

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{536:function(t,s,i){},610:function(t,s,i){"use strict";var n=i(536);i.n(n).a},617:function(t,s,i){"use strict";i.r(s);var n={methods:{starGithub:function(){window.open("https://github.com/1011cat/shotCat_doc")}}},a=(i(610),i(21)),c=Object(a.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"bg",on:{click:this.starGithub}},[this._m(0)])}),[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"word glitch"},[s("div",{staticClass:"flash is-off"},[s("span",{staticClass:"text"},[this._v("给个star!")])])])}],!1,null,null,null);s.default=c.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{536:function(t,s,i){},612:function(t,s,i){"use strict";var n=i(536);i.n(n).a},621:function(t,s,i){"use strict";i.r(s);var n={methods:{starGithub:function(){window.open("https://github.com/1011cat/shotCat_doc")}}},a=(i(612),i(21)),c=Object(a.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"bg",on:{click:this.starGithub}},[this._m(0)])}),[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"word glitch"},[s("div",{staticClass:"flash is-off"},[s("span",{staticClass:"text"},[this._v("给个star!")])])])}],!1,null,null,null);s.default=c.exports}}]);

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{537:function(t,e,n){},611:function(t,e,n){"use strict";var i=n(537);n.n(i).a},624:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:function(t,e){var n=e.props,i=e.slots;return t("span",{class:["badge",n.type],style:{verticalAlign:n.vertical}},n.text||i().default)}},r=(n(611),n(21)),a=Object(r.a)(i,void 0,void 0,!1,null,"15b7b770",null);e.default=a.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{537:function(t,e,n){},613:function(t,e,n){"use strict";var i=n(537);n.n(i).a},626:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:function(t,e){var n=e.props,i=e.slots;return t("span",{class:["badge",n.type],style:{verticalAlign:n.vertical}},n.text||i().default)}},r=(n(613),n(21)),a=Object(r.a)(i,void 0,void 0,!1,null,"15b7b770",null);e.default=a.exports}}]);

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{618:function(t,e,s){"use strict";s.r(e);var n=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],o={methods:{getMsg:function(){return n[Math.floor(Math.random()*n.length)]}}},i=s(21),h=Object(i.a)(o,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"theme-container"},[e("div",{staticClass:"theme-default-content"},[e("h1",[this._v("404")]),this._v(" "),e("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),e("RouterLink",{attrs:{to:"/"}},[this._v("\n Take me home.\n ")])],1)])}),[],!1,null,null,null);e.default=h.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{620:function(t,e,s){"use strict";s.r(e);var n=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],o={methods:{getMsg:function(){return n[Math.floor(Math.random()*n.length)]}}},i=s(21),h=Object(i.a)(o,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"theme-container"},[e("div",{staticClass:"theme-default-content"},[e("h1",[this._v("404")]),this._v(" "),e("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),e("RouterLink",{attrs:{to:"/"}},[this._v("\n Take me home.\n ")])],1)])}),[],!1,null,null,null);e.default=h.exports}}]);

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{627:function(t,e,n){"use strict";n.r(e);var s=n(21),o=Object(s.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("p",[e("home")],1)])}),[],!1,null,null,null);e.default=o.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{629:function(t,e,n){"use strict";n.r(e);var s=n(21),o=Object(s.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("p",[e("home")],1)])}),[],!1,null,null,null);e.default=o.exports}}]);

View File

@ -1 +1 @@
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{621:function(t,s,e){"use strict";e.r(s);var n=e(21),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"组件说明"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#组件说明"}},[this._v("#")]),this._v(" 组件说明")])])}),[],!1,null,null,null);s.default=r.exports}}]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{623:function(t,s,e){"use strict";e.r(s);var n=e(21),r=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"组件说明"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#组件说明"}},[this._v("#")]),this._v(" 组件说明")])])}),[],!1,null,null,null);s.default=r.exports}}]);

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/10.6983a4ff.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.1c094398.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/10.084c60d0.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.3874d50e.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -89,6 +89,6 @@ cnchar.use(poly, order, trad); <span class="hljs-comment">// 参数顺序无关
</a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/10.6983a4ff.js" defer></script><script src="/cnchar/v2/assets/js/3.1c094398.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/10.084c60d0.js" defer></script><script src="/cnchar/v2/assets/js/3.3874d50e.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/11.cc6e19fc.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.1c094398.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/11.af480cb8.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.3874d50e.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -113,6 +113,6 @@ draw(<span class="hljs-string">'你好'</span>)</code></pre></div> <h2 id="_2-
<a href="/cnchar/v2/doc/trad.html" class="prev">
cnchar-trad
</a></span> <!----></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/11.cc6e19fc.js" defer></script><script src="/cnchar/v2/assets/js/3.1c094398.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/11.af480cb8.js" defer></script><script src="/cnchar/v2/assets/js/3.3874d50e.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/9.5b3a4467.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.1c094398.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/9.47886e19.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.3874d50e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -57,6 +57,6 @@
<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账号
<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/v2/doc/cnchar.html" class="sidebar-link">cnchar</a></li><li><a href="/cnchar/v2/doc/poly.html" class="sidebar-link">cnchar-poly</a></li><li><a href="/cnchar/v2/doc/order.html" class="sidebar-link">cnchar-order</a></li><li><a href="/cnchar/v2/doc/trad.html" class="sidebar-link">cnchar-trad</a></li><li><a href="/cnchar/v2/doc/draw.html" class="sidebar-link">cnchar-draw</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id=""><a href="#" class="header-anchor">#</a> </h1></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">4/10/2020, 12:11:14 AM</span></div></footer> <!----> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/9.5b3a4467.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/9.47886e19.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/12.462a0d66.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.1c094398.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/12.2b528551.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.3874d50e.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -72,6 +72,6 @@ cnchar.use(order); <span class="hljs-comment">// use 在浏览器环境中非必
</a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/12.462a0d66.js" defer></script><script src="/cnchar/v2/assets/js/3.1c094398.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/12.2b528551.js" defer></script><script src="/cnchar/v2/assets/js/3.3874d50e.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/13.d4dc98f5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.1c094398.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/13.722d54da.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.3874d50e.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -69,6 +69,6 @@ cnchar.use(poly); <span class="hljs-comment">// use 在浏览器环境中非必
</a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/13.d4dc98f5.js" defer></script><script src="/cnchar/v2/assets/js/3.1c094398.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/13.722d54da.js" defer></script><script src="/cnchar/v2/assets/js/3.3874d50e.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/14.f5f6672e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.1c094398.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/14.d5cecf05.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.3874d50e.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -81,6 +81,6 @@ string.convertSparkToTrad();</code></pre></div> <p>以下是几个实例:</p>
</a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/14.f5f6672e.js" defer></script><script src="/cnchar/v2/assets/js/3.1c094398.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/14.d5cecf05.js" defer></script><script src="/cnchar/v2/assets/js/3.3874d50e.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/15.68737575.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/5.9e6d2707.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.1c094398.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/15.764d2bed.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/5.8ce9669a.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.3874d50e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -61,6 +61,6 @@
</a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/15.68737575.js" defer></script><script src="/cnchar/v2/assets/js/5.9e6d2707.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/15.764d2bed.js" defer></script><script src="/cnchar/v2/assets/js/5.8ce9669a.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/16.3053b002.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.1c094398.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/16.39e61160.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/3.3874d50e.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -89,6 +89,6 @@ cnchar.use(poly, order, trad);</code></pre></div> <h2 id="_2-cdn引用"><a href=
</a>
</span></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/16.3053b002.js" defer></script><script src="/cnchar/v2/assets/js/3.1c094398.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/16.39e61160.js" defer></script><script src="/cnchar/v2/assets/js/3.3874d50e.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/17.0328be00.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.1c094398.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.6d3f1d6a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.716a2d5f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/17.34115162.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.3874d50e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/4.aef392b0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/8.a5b0195c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link">
@ -61,6 +61,6 @@
<a href="/cnchar/v2/guide/start.html" class="prev">
快速上手
</a></span> <!----></p></div> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/17.0328be00.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/17.34115162.js" defer></script>
</body>
</html>

View File

@ -8,8 +8,8 @@
<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="preload" href="/cnchar/v2/assets/css/0.styles.9f430868.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.cb8474c5.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.338d50e2.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/8.716a2d5f.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/4.6d3f1d6a.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.6983a4ff.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.cc6e19fc.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.462a0d66.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.d4dc98f5.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.f5f6672e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.68737575.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.3053b002.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.0328be00.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b6c135fb.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.4c918771.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.8c24635f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.1c094398.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.9e6d2707.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.37ec8c51.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.576e924c.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.5b3a4467.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.9f430868.css">
<link rel="preload" href="/cnchar/v2/assets/css/0.styles.8592f263.css" as="style"><link rel="preload" href="/cnchar/v2/assets/js/app.b6364b3e.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/2.778f515d.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/8.a5b0195c.js" as="script"><link rel="preload" href="/cnchar/v2/assets/js/4.aef392b0.js" as="script"><link rel="prefetch" href="/cnchar/v2/assets/js/10.084c60d0.js"><link rel="prefetch" href="/cnchar/v2/assets/js/11.af480cb8.js"><link rel="prefetch" href="/cnchar/v2/assets/js/12.2b528551.js"><link rel="prefetch" href="/cnchar/v2/assets/js/13.722d54da.js"><link rel="prefetch" href="/cnchar/v2/assets/js/14.d5cecf05.js"><link rel="prefetch" href="/cnchar/v2/assets/js/15.764d2bed.js"><link rel="prefetch" href="/cnchar/v2/assets/js/16.39e61160.js"><link rel="prefetch" href="/cnchar/v2/assets/js/17.34115162.js"><link rel="prefetch" href="/cnchar/v2/assets/js/18.b83a738b.js"><link rel="prefetch" href="/cnchar/v2/assets/js/19.421f793f.js"><link rel="prefetch" href="/cnchar/v2/assets/js/20.931a6660.js"><link rel="prefetch" href="/cnchar/v2/assets/js/21.01909396.js"><link rel="prefetch" href="/cnchar/v2/assets/js/3.3874d50e.js"><link rel="prefetch" href="/cnchar/v2/assets/js/5.8ce9669a.js"><link rel="prefetch" href="/cnchar/v2/assets/js/6.be3421a4.js"><link rel="prefetch" href="/cnchar/v2/assets/js/7.aa9e4e65.js"><link rel="prefetch" href="/cnchar/v2/assets/js/9.47886e19.js">
<link rel="stylesheet" href="/cnchar/v2/assets/css/0.styles.8592f263.css">
</head>
<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/v2/" 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/v2/" class="nav-link router-link-exact-active router-link-active">
@ -57,6 +57,6 @@
<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账号
<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"><p><div class="home-wrapper"><div><img src="/cnchar/v2/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></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">npm</div> <div class="f-des">cdn</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></p></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">:</span> <span class="time">4/13/2020, 4:46:50 PM</span></div></footer> <!----> </main></div><div class="global-ui"><!----><div></div></div></div>
<script src="/cnchar/v2/assets/js/app.cb8474c5.js" defer></script><script src="/cnchar/v2/assets/js/2.338d50e2.js" defer></script><script src="/cnchar/v2/assets/js/8.716a2d5f.js" defer></script><script src="/cnchar/v2/assets/js/4.6d3f1d6a.js" defer></script>
<script src="/cnchar/v2/assets/js/app.b6364b3e.js" defer></script><script src="/cnchar/v2/assets/js/2.778f515d.js" defer></script><script src="/cnchar/v2/assets/js/8.a5b0195c.js" defer></script><script src="/cnchar/v2/assets/js/4.aef392b0.js" defer></script>
</body>
</html>