摘要: 使用uniapp开发时,可以通过在app.vue中定义全局变量,在没个页面内通过globalData获取 1、app.vue文件内部的写法 <script> export default { globalData: { text: 'text' }, onLaunch: function() { c 阅读全文
posted @ 2020-03-17 17:58 Alex-Song 阅读(3094) 评论(0) 推荐(0) 编辑
摘要: 1、如果需要使用自定义导航栏的时候,需要在page.json文件中做如下更改 "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/list/index", "st 阅读全文
posted @ 2020-03-17 10:45 Alex-Song 阅读(8707) 评论(0) 推荐(0) 编辑