Home > Mobile >  WeChat small program can obtain the data to the cloud database, use wx: for in the view does not dis
WeChat small program can obtain the data to the cloud database, use wx: for in the view does not dis

Time:11-22

Figure 1 js

Js graph 2

WXML

Can search data

CodePudding user response:

Two step validation:
1, the debugger AppData menu and view the current page data,
2, js in figure 2, the API. The find (" XXXX "). Then (res=& gt; { this . SetData ({XXXX})}); This this this estimate is not pointing to the current page; In API before you take this assigned to variables, then try to use, as follows:
 

GetMenuType () {
var that=this;
API. The find (" wuliufenbu "). Then (res=& gt; {
That the setData ({
MenuType: res. Data
})
})
}

  • Related