- 给view绑定的事件,通过调试在真机上预览的话,返回的数据老是警告,没有一个功能可以用,而根据上面反馈的警告,我逐一排查,还是不行;
{ "pages" : [ "page/index/index" , "page/logs/logs" , "page/register/index" , "page/home/index" ], "subPackages" : [ { "root" : "page/company/" , "pages" : [ "joincompany/index" ] }, { "root" : "page/myself/" , "pages" : [ "modify/index" , "sysmsg/index" , "mymsg/index" ] }, { "root" : "page/invoice" , "pages" : [ "entrylist/index" , "writejk/index" , "writesk/index" , "addaccount/index" ] }, { "root" : "page/manage" , "pages" : [ ] }, { "root" : "page/waite" , "pages" : [ ] } ], "networkTimeout" : { "request" : 10000, "connectSocket" : 10000, "uploadFile" : 10000, "downloadFile" : 10000 }, "window" : { "backgroundTextStyle" : "light" , "navigationBarBackgroundColor" : "#fff" , "navigationBarTitleText" : "xxxxx" , "navigationBarTextStyle" : "black" } } |
- 谁能帮我看看嘛,提供个思路也行,十分感谢
没看出什么问题,是不是是中文的:号
不是的,我只是在后面按了一个空格,方便看
在开发工具上可以?
使用预览能行,调试就不行
看看你的。json文件
{
"pages"
: [
"page/index/index"
,
"page/logs/logs"
,
"page/register/index"
,
"page/home/index"
],
"subPackages"
: [
{
"root"
:
"page/company/"
,
"pages"
: [
"joincompany/index"
]
},
{
"root"
:
"page/myself/"
,
"pages"
: [
"modify/index"
,
"sysmsg/index"
,
"mymsg/index"
]
},
{
"root"
:
"page/invoice"
,
"pages"
: [
"entrylist/index"
,
"writejk/index"
,
"writesk/index"
,
"addaccount/index"
]
},
{
"root"
:
"page/manage"
,
"pages"
: [
]
},
{
"root"
:
"page/waite"
,
"pages"
: [
]
}
],
"networkTimeout"
: {
"request"
: 10000,
"connectSocket"
: 10000,
"uploadFile"
: 10000,
"downloadFile"
: 10000
},
"window"
: {
"backgroundTextStyle"
:
"light"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTitleText"
:
"xxxxx"
,
"navigationBarTextStyle"
:
"black"
}
}
这是app.json里面的
{
"navigationBarTitleText"
:
"xxxxx"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarBackgroundColor"
:
"#7CBF2A"
}
这是单页面里面的json文件