javascript - How to splice vuejs strings and variables
淡淡烟草味
淡淡烟草味 2017-05-19 10:44:04
0
1
554
<ul id="example-1">
  <li v-for="(value, key) in items">
        <my-components :options="options"></my-components>    
  </li>
</ul>

According to the traversed data, different parameters are passed to the component. How to achieve this?

For example
When key==0, options=options_0
When key==1, options=options_1

淡淡烟草味
淡淡烟草味

reply all(1)
迷茫
<ul id="example-1">
  <li v-for="(value, key) in items">
        <my-components :options="'options_'+key"></my-components>    
  </li>
</ul>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!