import cnchar from 'cnchar'; '汉字'.spell(); '汉字'.stroke();
<script src="https://cdn.jsdelivr.net/gh/theajack/cnchar/dist/cnchar.latest.min.js"></script> <script> '汉字'.spell(); '汉字'.stroke(); </script>