:item = item,为什么不这样写: :item = "item"
来源:4-7 作用域插槽
 
			Seagull8796540
2021-01-04
template:
		`<div>
                            <ul>
                                <slot 
                                    v-for="item of list"
                                    :item=item
                                ></slot>                                                                       
                            </ul>
                        </div>`,
写回答
	2回答
- 
				  Seagull8796540 提问者 2021-01-09 `<div> 
 <ul>
 <slot
 v-for="item of list"
 :item="item"
 ></slot>
 </ul>
 </div>`,那应该这么写,是吗? 012021-01-09
- 
				  Dell 2021-01-05 vue 要求的固定语法,必须加“” 00
相似问题
