这个应该和解构的含义差不多 const { a, b, c } = { a: 'a', b: 'b', 'c' } const scope = { $index: 1 } const { $index } = scope; // if you use {scope} in template const { $index } = { scope } 所以你什么都拿不到,还报错了
这个应该和解构的含义差不多
所以你什么都拿不到,还报错了