var app = new Vue({ el: '#app', data: { url:"https://www.baidu.com" } })
<div id="app"> <a v-bind:href="url">百度</a> </div>