赞
踩
写普通页面,清除浏览器缓存,按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"
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。