Vue 的属性如何动态替换值呢?
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利
<div v-for="item in boxs">
<img src="http://wx4.sinaimg.cn/mw690/a7cb85c1ly1fexkelx530j20cs0cswfn.jpg" class="preview_image"
style="left: {{ item.x }} px;top:0px;width:100px;height:100px;" />
</div>
这里 style 里的 left
我想直接用 item
对象的一个属性 item.x
,要怎么写呢?