Home > Mobile >  WeChat small program set in the data
WeChat small program set in the data

Time:11-02

Setting the data field "student" to undefined is invalid
The following figure

CodePudding user response:

req.js

Var studentList=[
{
Name: "xiaoming,"
Age: "22",
Hobby: "sleep"
},
{
Name: "xiaohong,"
Age: "22",
Hobby: {
One: "eat",
Two: "eatfood
"}
}
]

The module. Exports={
StudensList: studentList,
}

CodePudding user response:

I think you should be solved!
Used in the test that points to this, in fact, pointing to the data on this page, so not to be found in this page attributes of the student, you should give the student to initialize a
In the data set in the student: []
  • Related