當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
前端学习(1715):前端系列javascript之页面配置
生活随笔
收集整理的這篇文章主要介紹了
前端学习(1715):前端系列javascript之页面配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
test-page.vue?
<template><view>test-page</view> </template><script>export default {data() {return {}},methods: {}} </script><style></style>page.json
{"pages": [ //pages數組中第一項表示應用啟動頁,參考:https://uniapp.dcloud.io/collocation/pages{"path" : "pages/test-page/test-page","style" : {}},{"path": "pages/index/index","style": {"navigationBarTitleText": "uni-app"}}],"globalStyle": {"navigationBarTextStyle": "black","navigationBarTitleText": "uni-app","navigationBarBackgroundColor": "#F8F8F8","backgroundColor": "#F8F8F8"},"condition" : { //模式配置,僅開發期間生效"current": 0, //當前激活的模式(list 的索引項)"list": [{"name": "", //模式名稱"path": "", //啟動頁面,必選"query": "" //啟動參數,在頁面的onLoad函數里面得到}]} }運行結果
總結
以上是生活随笔為你收集整理的前端学习(1715):前端系列javascript之页面配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 车流量统计(3)
- 下一篇: 前端学习(1732):前端系列javas