gpt4 book ai didi

javascript -\n 无法在 Javascript 中工作

转载 作者:行者123 更新时间:2023-11-28 04:20:14 25 4
gpt4 key购买 nike

<分区>

出于某种原因\n 在 javascript 中对我不起作用。无论如何修复它或使用 html?就我而言,我认为使用 <br>在我的 href 中不起作用。你有什么建议。

工作 JSFiddle here .

HTML:

<a id = 'emailoff' href = "" target = "_blank">
<div id= "btn1">
<h2 id = "enter">Send Email</h2>
</div>
</a>

Javascript:

$('#btn1').click(function() {
$("#emailoff").attr("href", "mailto:" +
"?subject=Your ThinOptics glasses" +
"&body=To get your new ThinOptics glasses simply click this link and pick the case and color you like best. You'll get free shipping on your order. \n"+
" WWw.Thinoptics.Com/teddy@shalon.com \n" +
"\n Enjoy")
});

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com