Vue.js img src concatenate variable and text

前端 未结 6 1967
日久生厌
日久生厌 2020-12-12 17:30

I want to concatenate Vue.js variable with image URL.

What I computed:

imgPreUrl : function() {
    if (androidBuild) return \"android_asset/www/\";
         


        
6条回答
  •  心在旅途
    2020-12-12 18:31

    In another case I'm able to use template literal ES6 with backticks, so for yours could be set as:

    
    

提交回复
热议问题