How vue-cli calls the contents of a specified json id

now you need to output content within the json range by specifying id, but you can"t get out of it anyway.

clipboard.png

json

{
  "msg": "ok",
  "dataTxt":[
    {
      "id":"1",
      "dataList":[
        {
          "title": "",
          "txt": ":1:   ;2:   :   1;  ........ ",
          "url":"/Category/List/1"
        },
        {
          "title": "",
          "txt": ":1:   ;2:   :   1;  ........ ",
          "url":"/Category/List/1"
        }
      ]
    }
  ]
}

v-show should be OK, but only Boolean should be supported here. Write it in axios and report an error.

Mar.21,2021

Please note that id in your template is lowercase , while id in json is uppercase , and id will not equal ID . Item.id is always undefind
id is equal, you only need to dynamically control cate_id to get the effect you want.

Menu