使用iframe标签,将表单提交的数据提交到iframe里面
<div class="nav-search">
<iframe name='forsubmit' style='display: none;'></iframe>
<form target="forsubmit">
<div class="inp">
<input v-model="message" type="text" name="" size="22" maxlength="60" placeholder="输入文本地址">
</div>
<div id="transfer" class="inp-btn">
<input @click='transfer' type="submit" name="" value="转换">
</div>
</form>
<div class="clear-float"></div>
</div>