摘要:
const mock = require('mockjs'); // 引入mockjs const data = mock.mock({ "data|20": [{ "id": "@id", "name": "@cname", "phone": /^1[3578]\d{9}/, "ip": "@ip 阅读全文
摘要:
yarn和npm一样,默认安装的全局包和缓存都在C盘里:npm的在:C:\Users\Administrator\AppData\Roaming\npmyarn的在:C:\Users\Admin\AppData\Local\Yarn 打开cmd窗口,输入: yarn config set globa 阅读全文