简体   繁体   中英

vue.js result pass to text input html

I'm use vue.js and function v-for for read qr-code

Example

<ul v-for="(scan,key) in scans" :key="key" > {{scan.content}} </ul> 

I'm must value inside {{scan.content}} example EmployeeID But I'm can't pass value to text input html.

<input type="text" value="{{scan.content}}">

try to <input type="text" :value="scan.content"> ; I think v-bind will work. v-bind

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM