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
})
})
}