0
코드에 문제가 있습니다. 요소의 href를 편집하고 싶습니다. 미리 만들어진 제목과 본문을 클릭하면 이메일을 보내야합니다. 나는 "예기치 않은 토큰이 불법"이라는 오류를 겪고 있는데, 나는 그 이유를 완전히 모릅니다.예기치 않은 토큰 ILLEGAL
누군가가이 문제로 나를 도울 수 있기를 바랬습니다.
자바 스크립트에서이 속성을 편집해야하므로 요소로 시작해야 시작됩니다.
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: [email protected]
?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
WWw.Thinoptics.Com/[email protected]
Enjoy")
});
UPDATE : "흔한 : [email protected]
오류가에 있습니다. .. "
감사합니다. 그 멍청한 짓! –