邮件客户端无法使用mailto锚href打开

时间:2019-05-21 09:44:01

标签: javascript html mailto

我正在尝试使用锚标记mailto选项打开默认的邮件客户端,邮件正文包含泰国字符串。单击邮件链接时没有任何反应。这是锚标记

<modal name="add-stocks"  height="auto" :draggable="true" :width="600">
    <div class="modal-header">
        <h4>Add new stock</h4>
    </div>
    <div class="modal-body form-horizontal">
    <div class="form-group">
        <label for="unitPrice" class="control-label col-md-2">Unit Price</label>
        <div class="col-md-4">
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">&#8358;</span>
                <input class="form-control" v-model="newStock.unitPrice" readonly aria-describedby="basic-addon1">
            </div>
        </div>
        <div style="clear:both"></div>
    </div>
    <div class="form-group">
        //form fields here
    </div>  
    <div class="modal-footer modal_btns">
        <button class="btn btn-primary" @click.prevent="uploadStock">Save</button>
        <button class="btn btn-danger" @click.prevent="cancelUpload">Cancel</button>
    </div>
</modal>

我像这样动态地绑定对象和身体

cancelUpload(){
    this.$modal.hide('add-stocks')
    this.newStock.unitPrice = prod.sellin_price
    this.newStock.id = prod.id
    this.newStock.name = prod.name
}

这是小提琴网址https://jsfiddle.net/sagarj1987/sy7cqgva/

我如何显示带有此数据的邮件客户端,请先谢谢

0 个答案:

没有答案