摘要:
安装 npm i nanoid 使用 import {nanoid} from 'nanoid' export default { name:"School", data() { return { name:"xiao bai", adress:"北京", id:nanoid(5) } }, } < 阅读全文
摘要:
很多没接触过的人士被问到插件开发觉得很厉害 其实看过官方文档之后就知道其实不是很难 下面是官方给出的开发案例 MyPlugin.install = function (Vue, options) { // 1. 添加全局方法或 property Vue.myGlobalMethod = functi 阅读全文