uni-app自定义插件挂载到全局
以简单的弹窗插件为例子config.jsconst config = { baseUrl:'http://localhost:8088',//请求的基本路径 modalColor:'#5271FF', //弹窗颜色 }module.exports = configmessage.jsconst config = require('./config.js')var message = { toast(title, type = 'text') { if (title.length
原创
2022-04-01 15:54:00 ·
1469 阅读 ·
0 评论