("#receiver").val(userEmail);
}, error: function(xhr, status, error) { console.error("请求失败:" + error); layer.msg("获取用户邮箱失败,请稍后重试!"); } });
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
<div class="layui-form-item">
<label class="layui-form-label">收件人邮箱<font color=red>*</font></label>
<div class="layui-input-block">
<input type="text" name="receiver" id="receiver" required lay-verify="required" autocomplete="off" placeholder="请输入收件人邮箱" class="layui-input" style="width:80%;">
</div>
</div>