【Vue】value值如何通过{{}}获取?答:【:value="item.value"】或者【v-bind:value="item.value"】...

var historyList = new Vue({
    el: '#historyList',
    data: {
        items: [
            //{text:'3000吨以下',value:'0-3000'},
            //{text:'5000吨 至 1.0w吨',value:'5000-10000'},
            //{text:'55吨 至 88吨',value:'55-88'}
        ]
    }
})


  • for="item in items" class="tonList">

你可能感兴趣的:(javascript,前端,ViewUI)