首页 > 编程知识 正文

微信小程序开发工具怎么打开,微信小程序开发如何设置页面

时间:2023-05-04 03:30:43 阅读:227642 作者:2664

写普通页面,清除浏览器缓存,按F5刷新。但是微信小程序不能输入地址栏,每次刷新都回到首页。

每次修改代码,会自动编译,刷新。进入首页需要重新点击,从首页进入到编辑的页面。

pages/ask/ask 这个是我正在写的页面,只需要把"pages/ask/ask"添加到 pages数组的首个元素即可。

* app.json

{ "pages": [ "pages/ask/ask", "pages/index/index", "pages/user/index", "pages/login/login", "pages/logs/index", "pages/ask/index", "pages/scope/index", "pages/user/edit", "pages/user/help", "pages/ask/add" ], "window": { "navigationBarBackgroundColor": "#ffffff", "navigationBarTitleText": "", "navigationBarTextStyle": "black", "backgroundTextStyle": "dark" }, "tabBar": { "color": "#6e6d6b", "selectedColor": "#ff9966", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "images/tabBar/home.png", "selectedIconPath": "images/tabBar/home_on.png" }, { "pagePath": "pages/ask/index", "text": "问病理", "iconPath": "images/tabBar/ask.png", "selectedIconPath": "images/tabBar/ask_on.png" }, { "pagePath": "pages/scope/index", "text": "实视", "iconPath": "images/tabBar/view.png", "selectedIconPath": "images/tabBar/view_on.png" }, { "pagePath": "pages/user/index", "text": "我的", "iconPath": "images/tabBar/user.png", "selectedIconPath": "images/tabBar/user_on.png" } ], "position": "bottom" }, "networkTimeout": { "request": 1000, "downloadFile": 10000 }, "debug": true, "sitemapLocation": "sitemap.json"}

 

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。