un.js 134 B

123456789101112
  1. const bopo = require ('hanzi-to-zhuyin');
  2. var i;
  3. bopo('我的猫喜欢吃苹果toto').then( x => {
  4. i = x;
  5. console.log(i);
  6. });