String splicing method in Vue tag and attribute

Time:2021-12-8
1. Attribute eg:: value = "'str '+ XX" or: value = "STR ${XX}"
2. Tag eg: < div V-for = "(item, index) in userlist" >
                    {{item.userName+'('+item.userAccount+')'}}
              </div>

Turn fromblog.csdn.net/w_t_y_y/article/deta…

This work adoptsCC agreement, reprint must indicate the author and the link to this article

Writing code is an interesting thing.