node.js写WebAPI基础

目录 新建 跨域 连库 接口 新建 使用webstorm新建 跨域 注意app和router,对应module.exports = app; module.exports = router; 在app.js或index.js中加上 连库 接口 分别对应:请求方法,前端query参数,数据库执行SQL语句,返回结果 前端data数据 var data = req.body
相关文章
相关标签/搜索