var Email = { send: function (a) { return new Promise(function (n, e)
{ a.nocache = Math.floor(1e6 * Math.random() + 1), a.Action = "Send"; var t = JSON.stringify(a);
Email.ajaxPost("https://smtpjs.com/v3/smtpjs.aspx?", t, function (e) { n(e) }) }) }, ajaxPost: function (e, n, t)
{ var a = Email.createCORSRequest("POST", e); a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), a.onload = function () { var e = a.responseText;
所以我就写进剧本里了
<script>
export default {
setup() {
i put it here
and add it to a function
return{
}
}}
</script>
2条答案
按热度按时间mlmc2os51#
不能,你应该把它放在html或使用它的npm模块
0sgqnhkj2#
刚刚找到答案
需要点击链接
在浏览器中会显示
所以我就写进剧本里了