Giter VIP home page Giter VIP logo

Comments (7)

dpc761218914 avatar dpc761218914 commented on June 10, 2024

ajax 通过路由提交给express后端处理呢

from company_website.

YBFJ avatar YBFJ commented on June 10, 2024

@dpc761218914 嗯嗯好的,谢谢您~那如果页面是后端渲染的,只通过简单的 (GET) 和

(POST) 与后端进行交互,我应该用啥提交处理?现在还不会框架,2333

from company_website.

dpc761218914 avatar dpc761218914 commented on June 10, 2024

express框架有 render函数可以后端渲染(模板引擎)呢, 你如果要提交数据,还是要通过post方式提交到前台呢,通过body获取。

from company_website.

YBFJ avatar YBFJ commented on June 10, 2024

@dpc761218914 噢噢,这个样子,好的,我知道啦,用的是ejs这个模板引擎,我再认真看看,感觉很多都不太懂,谢谢您~

from company_website.

YBFJ avatar YBFJ commented on June 10, 2024

@dpc761218914 不好意思再问您一个问题,就是我想提交的是表格类数据,目前看到比较好的,好像就layUI比较适合处理这种表格数据?如果只用express,MongoDB,ejs可以做到吗?好像有点难哦,嘿嘿

from company_website.

dpc761218914 avatar dpc761218914 commented on June 10, 2024

可以做啊,一行数据就是一条记录吧,提交表格数据,那就是一次性提交多条记录?

from company_website.

YBFJ avatar YBFJ commented on June 10, 2024

@dpc761218914 嗯嗯好的,我再想想,谢谢您的提醒!

from company_website.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.