Comments (7)
ajax 通过路由提交给express后端处理呢
from company_website.
@dpc761218914 嗯嗯好的,谢谢您~那如果页面是后端渲染的,只通过简单的 (GET) 和
(POST) 与后端进行交互,我应该用啥提交处理?现在还不会框架,2333from company_website.
express框架有 render函数可以后端渲染(模板引擎)呢, 你如果要提交数据,还是要通过post方式提交到前台呢,通过body获取。
from company_website.
@dpc761218914 噢噢,这个样子,好的,我知道啦,用的是ejs这个模板引擎,我再认真看看,感觉很多都不太懂,谢谢您~
from company_website.
@dpc761218914 不好意思再问您一个问题,就是我想提交的是表格类数据,目前看到比较好的,好像就layUI比较适合处理这种表格数据?如果只用express,MongoDB,ejs可以做到吗?好像有点难哦,嘿嘿
from company_website.
可以做啊,一行数据就是一条记录吧,提交表格数据,那就是一次性提交多条记录?
from company_website.
@dpc761218914 嗯嗯好的,我再想想,谢谢您的提醒!
from company_website.
Related Issues (16)
- 后台登录 HOT 2
- 项目启动卡在node ./bin/www这步 HOT 1
- 我想问问运行程序连接mongondb后为什么没有数据库 HOT 1
- 为什么运行后 数据库也启动了 所有接口都处于没响应
- 现在运行npm i提示要安装最新的依赖不,安装了又运行不起来。
- 请问项目运行起来后,输入url http://localhost:3000连不上服务器 HOT 1
- 请问这是什么情况Cannot find module './routes/index'
- 请问这个怎么登录
- ueditor 老是报错,不支持严格模式 HOT 2
- 下载代码后如何部署环境并 运行
- 下载代码后如何部署环境并运行 HOT 4
- 请问 mongoDB数据库在哪里? HOT 2
- 怎么在webstorm里面修改node的配置呀 HOT 1
- Linux系统部署吗? HOT 1
- 换别的数据库 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from company_website.