亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

? ? ????? JS ???? ??? ??? ?? ??? ?? ???

??? ??? ?? ??? ?? ???

Nov 03, 2024 am 03:49 AM

??: ??? ?????

??? ???? ???? ?? ?? ??? ??? ???? ?? ? ?? ?? WYSIWYG(What You See Is What You Get) ??? ??? ? ????. ??? ???? HTML ? CSS? ???? ??? ?? ?? ???? ??? ???? ???? ? ?????.

? ????? ?? ?? ? ??? ?? ??? ???? ?? ??? ?? ???? ??? ?? ??? ??? ??? ??? ? ????. ?? ?? ??? ??? ? ??? Unlayer? ???? MailDev? ???? ????????.

????

Unlayer? ???? ???? ???? ???? ??? ? ?? ?? ?? ??? ? ?? ??? ??????. React ?????? ?? ???? ? ??????? ?? ??? ???? ??? ??? ??? ???? ?? ?? ?? ??? ???.

React, Vue, Angular ????? ?? ??? ? ????. ??? ? ?? ?? ?????.

  • ??? ? ?? ???
  • ?? ??? ???
  • HTML ? JSON ???? ??
  • ??? ?? ??? ?? ??? ??? ???? ??

??? ???

? ?? ?? ?? ?? ??? ????? ??? ??? ??? ?? ??? ??? MJML? ???? ??? Easy email? ????.

Unlayer? ??? ??? ? ?? ??? ???? ????? ???? ??? ??? ?? ??? ???? ?????? ?????.

Easy email? React? ??? ???? ???? ??? ??? ?????. ?? ??? ??? ????.

  • ??? ? ?? ???
  • ?? ???
  • ??? ??? ??

MJML

MJML? ??? ??? ???? ???? ??? ?????. ???? ?? ?? ? ??? ?????? ?? ??? HTML? ?????? ??? ??????.

?? ??:

  • MJML ??? ??? ???? ??? ??
  • MJML? ??? HTML? ??
  • ???? ??? ??? ?? ???? ?? ?? ?????

??JS

GrapesJS? ???? ???? ???? ???? ???? ?? ?? ??? ??? ?????. ??? ???? ?? ??? ????? ?? ?? ?? ?????? ?????.

??? GrapesJS? ?? ?????.

  • ??? ??? ?? ??? ????
  • ????? ??? ???
  • ???? ? ?? ???? ?? ??

??? ???? ????? ? ?????? ??

?? ??? ???? ?? ??? ?? ???? ????? ? ?????? ??? ? ??? ????. ??? ??? ?? ??? ???? ?? ???? ? ?????? ??? ???? ???? ??? ??? ???? ??? ? ????.

? ????? Unlayer? React ??????? ???? ??? ???????.

?? ??? ???? ??? React ??????? ???? ??? ?????.

npx create-react-app email-editor && cd email-editor 

???? ?? ??? React ??????? React-email-editor ???? ?????.

npm install react-email-editor

?? ? app.js? ?????? ?? ?? ???? App.css? ???????.

.App {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.button {
  background-color: #04AA6D; /* Green */
  border: none;
  color: white;
  padding: 15px 50px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 20px;
  border-radius: 32px;
  margin-top: 20px;
  margin-left: 20px;
  cursor: pointer;
}

???? App.js ??? ?? ??? ???????.

import axios from "axios";
import React, { useRef } from "react";
import EmailEditor from "react-email-editor";
import "./App.css";

const App = () => {
  const emailEditorRef = useRef(null);
  const exportHtml = () => {
    emailEditorRef.current.editor.exportHtml((data) => {
      const { html } = data;
      sendTestEmail(html);
    });
  };

  const sendTestEmail = async (html) => {
    try {
      const response = await axios.post("http://localhost:8080/send-email", {
        html,
      });
      alert(response.data);
    } catch (error) {
      console.error("Error sending email:", error);
    }
  };

  return (
    <div className="App">
      <h1>React Email Editor</h1>
      <EmailEditor ref={emailEditorRef} />
      <button className="button" onClick={exportHtml}>
        Send Email
      </button>
    </div>
  );
};

export default App;

?? ?? ???? ?? ??? useRef? ???? ???? ??? ???? ???? ??? ???(emailEditorRef)? ?????. ??? ??? ??? ???? HTML ??? sendTestEmail ??? ??? ?? ??? localhost API? ?? ??? ??? ????Html ??? ??????.

??? ???? ?? MailDev

MailDev? ??? ????? ??? ???? ?? ?? ? ???? ?? ???? ????? ?? ?? ?? SMTP(Simple Mail Transfer Protocol) ?????.

?? ??? ??? ?? ?? ??? ?? ????? ??? ???? ??? ?? ? ?? ? ?????? ?? ??? ?????.

MailDev ??????? ??????? SMTP ??? ???? ?? ??? ??? ?????. ??? ??? MailDev? ?? ?? ??? ?? ???? ?? ?? ????? ???? ?????? SMTP ?????.

MailDev ??? ???? ?? ???? ??? ??? ???? ??? ?????. ?? Node.js? ???? ??? ??? ??? ?????. ??? ?????? ???? ?? ?? ??? ???? Node ???? ??? ????.

mkdir my-node-backend && cd my-node-backend && npm init -y

? ??? Node ??? ????? ??? ?????. ?? ??? Express.js? Nodemailer? ???? ???, ?? ??? ???? ?????.

npm install express nodemailer cors

????, ???? ????? server.js ??? ??? ??? ?? ??? ??????.

const express = require("express");
const nodemailer = require("nodemailer");
const cors = require("cors");
const app = express();

app.use(express.json());
app.use(cors());

//Set up Nodemailer to connect to Maildev's SMTP server
const transporter = nodemailer.createTransport({
  host: "127.0.0.1",
  port: 1025, // Maildev's default SMTP port
  secure: false, // Maildev does not require SSL
  tls: {
    rejectUnauthorized: false,
  },
});

// API endpoint to send the email
app.post("/send-email", (req, res) => {
  const { html } = req.body;
  const mailOptions = {
    from: "IsaaacTheTester@example.com",
    to: "recipient@example.com",
    subject: "Test Email from React Email Editor",
    html: html,
  };

  transporter.sendMail(mailOptions, (error, info) => {
    if (error) {
      console.error("Error sending email:", error);
      return res.status(500).send("Failed to send email");
    }
    console.log("Email sent:", info.response);
    res.status(200).send("Email sent successfully");
  });
});

app.listen(8080, () => {
  console.log("Server is running on port 8080");
});

?? ?? ????? Nodemailer? ???? MailDev? SMTP ??? ?? ???? ??? Express? ???? Node ??? ???? ????. ??? ?? 8080?? ?? ???? /send-email ?????? ?? POST ??? ?????.

???? ????? ?? ??? ???? ?? ??? ?????.

node server.js

????? ?? ??? ???? MailDev? ???? ????? ?????.

npm install -g maildev

MailDev? ????? ???? ? ???? ?? ??? ???? ?????.

maildev

?? ??? ???? ????? ??? ???? ?? ??? ???? ??? ?????. ????? ????? ?? ??? ???? React ????? ?????.

npm start

?? ??? ???? ?? ??? http://localhost:3000/?? ?????.

A guide to the best email editing tools

?? ???? ??? ???? ???? ???? ???? MailDev? ???? ??? ???? ??? ???? ???????.

??? ?? ??? ???? ????? ??? ???? ???? ?? ?? http://127.0.0.1:1080/#/? ???? ???? ?? ???.

A guide to the best email editing tools

? ??? ?? ???! ????!

??? ????? ??? ? ?? ??

?? ?? ???? ??? ???? ?????, ??? ???? ????? ??? ??? ??? ? ???? ???? ??? ??? ????.

  • ??? ??? — ??? ? ???? ??? ?? ???? ???? ?????
  • ??? ? ?? ??? — ?? ?? ??? ??? ??? ???
  • ??? ?? ?? — ??? ?? HTML/CSS ?? ??
  • ?? ??? ?? — ??? ?? ??, ?? ??? ?? ??? ?????
  • ??????? ??? — React, Angular ? ??? ? ?????? ?????.
  • ??? ??? ?? ??? - ????? ???, ????? ????? ?? ???? ???? ?????

??

?? ??? ??? ??? Unlayer? ?? ??? ? ?? ???? ??? ??? ???? ????? ?? ???? ?????. ?? ?? MailDev? ???? ??? ?? ???? ????? ?? ? ??? ??? ??? ????.

?? ??? ?? ?? ???? ??? ???? ?? ??? ??? ?????. ???? ??? ?????!


LogRocket: ????? ???? JavaScript ??? ? ?? ??????.

?? ???? ?? ??? ?????. ??? ??? ? ?? ????? ??? ???? ?? ? ?????.

LogRocket? ???? ??? ??? ??? ??? ???? ??? ? ????. ??? ????? ???? ???? JavaScript ?????? ?? ??? ??? ???? ??? ??? ???? ??? ???? ??? ? ?? ??? ?????.

A guide to the best email editing tools

LogRocket? ?? ??, ??? ?? ??, ?? ??, ?? ??? ??? ?? ???? ??/??, ???? ????? ? ??? ?? ??? ?????. JavaScript ??? ??? ???? ?? ?? ?? ?? ????!

??? ??? ???.

? ??? ??? ??? ?? ??? ?? ???? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1597
29
PHP ????
1488
72
???
node.js?? HTTP ????? ??? node.js?? HTTP ????? ??? Jul 13, 2025 am 02:18 AM

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

JavaScript ??? ?? : ?? ? ?? JavaScript ??? ?? : ?? ? ?? Jul 13, 2025 am 02:43 AM

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

REACT vs Angular vs Vue : ?? JS ??? ??? ?? ????? REACT vs Angular vs Vue : ?? JS ??? ??? ?? ????? Jul 05, 2025 am 02:24 AM

?? JavaScript ??? ??? ??? ?????? ?? ??? ?? ?? ??? ?? ???? ????. 1. ??? ???? ???? ?? ??? ?? ? ? ???? ??? ??? ?? ? ?? ????? ?????. 2. Angular? ?????? ??? ?? ???? ? ?? ?? ??? ??? ??? ???? ?????. 3. VUE? ???? ?? ??? ???? ?? ?? ??? ?????. ?? ?? ?? ??, ? ??, ???? ???? ? SSR? ???? ??? ??? ??? ???? ? ??? ?????. ???, ??? ??? ??? ????? ????. ??? ??? ??? ??? ?? ????.

JavaScript Time Object, ??? Google Chrome? EACTEXE, ? ?? ? ???? ?????. JavaScript Time Object, ??? Google Chrome? EACTEXE, ? ?? ? ???? ?????. Jul 08, 2025 pm 02:27 PM

?????, JavaScript ???! ?? ? JavaScript ??? ?? ?? ?????! ?? ?? ??? ??? ??? ? ????. Deno?? Oracle? ?? ??, ??? JavaScript ?? ??? ????, Google Chrome ???? ? ??? ??? ???? ?????. ?????! Deno Oracle? "JavaScript"??? ????? Oracle? ?? ??? ??? ??????. Node.js? Deno? ??? ? Ryan Dahl? ??? ?????? ???? ????? JavaScript? ??? ???? Oracle? ????? ???? ?????.

?? ??? : JavaScript? ??, ?? ?? ? ?? ????? ?? ??? : JavaScript? ??, ?? ?? ? ?? ????? Jul 08, 2025 am 02:40 AM

??? JavaScript?? ??? ??? ?????? ?? ???????. ?? ??, ?? ?? ? ??? ??? ?? ????? ????? ?????. 1. ?? ??? ??? ????? ???? ??. ()? ?? ??? ??? ?????. ?. ()? ?? ??? ?? ??? ??? ?? ? ? ????. 2. ?? ??? .catch ()? ???? ?? ??? ??? ?? ??? ??????, ??? ???? ???? ????? ??? ? ????. 3. Promise.all ()? ?? ????? (?? ?? ?? ? ??????? ??), Promise.Race () (? ?? ??? ?? ?) ? Promise.AllSettled () (?? ??? ???? ??)

?? API? ???? ??? ???? ??? ?????? ?? API? ???? ??? ???? ??? ?????? Jul 08, 2025 am 02:43 AM

Cacheapi? ?????? ?? ???? ??? ???? ???, ?? ??? ??? ?? ???? ? ??? ?? ? ???? ??? ??????. 1. ???? ????, ??? ??, ?? ?? ?? ???? ???? ??? ? ????. 2. ??? ?? ?? ??? ?? ? ? ????. 3. ?? ?? ?? ?? ?? ??? ??? ?? ?????. 4. ??? ???? ?? ?? ???? ?? ?? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 5. ?? ???? ??, ??? ??? ? ??? ??, ?? ??? ? ?? ???? ???? ???? ? ?? ?????. 6.?? ??? ?? ?? ?? ??, ???? ?? ? HTTP ?? ????? ?????? ???????.

??? ??. ?? ????? ??? ????? ??? ?? ?? ??? ??. ?? ????? ??? ????? ??? ?? ?? Jul 06, 2025 am 02:36 AM

.map (), .filter () ? .reduce ()? ?? JavaScript ?? ?? ???? ??? ??? ??? ? ? ????. 1) .map ()? ??? ??? ??? ???? ? ??? ???? ? ?????. 2) .filter ()? ???? ??? ????? ? ?????. 3) .reduce ()? ???? ?? ??? ???? ? ?????. ???? ??? ????? ??? ?? ?? ??? ?????.

JS Roundup : JavaScript ??? ??? ?? ?? ??? JS Roundup : JavaScript ??? ??? ?? ?? ??? Jul 08, 2025 am 02:24 AM

JavaScript? ??? ??? ?? ??, ? ? ? ?? ???? ???? ??? ??? ?????. 1. ?? ??? ?? ??? ???? ??? ??? ??? ??? ?? WebAPI? ?????. 2. WebAPI? ??????? ??? ?? ? ? ??? ?? ??? (??? ?? ?? ???? ??)? ????. 3. ??? ??? ?? ??? ?? ??? ?????. ?? ??? ??? ????? ??? ??? ?? ? ???? ?????. 4. ???? ?? (? : Promise. 5. ??? ??? ???? ?? ???? ???? ?? ?? ?? ??? ????? ? ??????.

See all articles