Multiple / in Table Valid?

后端 未结 3 1053
[愿得一人]
[愿得一人] 2020-12-13 22:44

Imagine a list of lists similar to this:

var list = [
  { name: \'group1\', 
    items: [ 1, 2, 3, 4, 5 ]
  },
  { name: \'group2\', 
    items: [ 1, 2, 3, 4         


        
3条回答
  •  醉酒成梦
    2020-12-13 23:46

    I consider it to be just like id attributes. They are supposed to be unique, but you can actually re-use it in the same page and you can still select it. That said, just because it can be done doesn't mean it should be done.

    I would recommend against it.

提交回复
热议问题