Articles tagged with Express:

  • Email Service

    生成邮件模板并发送邮件

    async function sendEmail(
      email: string,
      filename: string,
      content: Buffer,
      subject = "材料下载"
    ) {
      const htmlTemplate = await generateHtmlForFileDownload();
      const …

  • 文件上传

    解析 Content-Type: multipart/form-data

    • formidable
    const form = new formidable({ multiples: true });
    
    form.parse(req, async (err, fields, files) => {
      if (err) {
        res.status(400).json({ error: `Invalid request: ${err}` });
        return …

  • Express

    import * as express from 'express';
    
    # .babel es6 => es5 X 
    # default => import 
    import express from 'express';
    
    const Com = () => {
        return (<div></div>)
    } 
    
    export default Com;
    

    正常用Js

    import Com from …

Page 1 / 1

Article
Tagcloud
DVA Java Express Architecture Azure CI/CD database ML AWS ETL nest sql AntV Next Deep Learning Flutter TypeScript Angular DevTools Microsoft egg Tableau SAP Token Regexp Unit test Nginx nodeJS sails wechat Jmeter HTML2Canvas Swift Jenkins JS event GTM Algorithm Echarts React-Admin Rest React hook Flux Redux ES6 Route Component Ref AJAX Form JSX Virtual Dom Javascript CSS design pattern