当前位置: 首页 > news >正文

jsp购物网站开发网络广告策划方案

jsp购物网站开发,网络广告策划方案,开发小程序需要的技术,wordpress 无法htmlexpress概念 Fast, unopinionated, minimalist web framework for Node.js 快速、独立、极简的 Node.js Web 框架。 express相当于前端的jquery, 在不更改不侵入原生node的基础上封装了大量易用且实用的服务端api, express框架的封装原理就是前面第十天我们自己封装的简易服务器…
  1. express概念

Fast, unopinionated, minimalist web framework for Node.js
快速、独立、极简的 Node.js Web 框架。

  1. express相当于前端的jquery, 在不更改不侵入原生node的基础上封装了大量易用且实用的服务端api, express框架的封装原理就是前面第十天我们自己封装的简易服务器, 不过express做的抽象要比我们自己封装服务器多得多
  2. 使用 Express 应用生成器 这个可以比作做前端的项目初始化脚手架比如vue-cli vite
1.
npm install -g express-generator 
安装生成器
2.
express --view=pug myapp 
生成应用, 一些404页面, 静态资源目录帮我们做好了, 使用 handlebars 作为模板引擎, 关于handlebars其实是一个非常简单的模板引擎
感兴趣可以去查阅相关资料
  1. 基础api介绍
//路径匹配
//1.匹配 /abcd
app.use('/abcd', (req, res, next) => {console.log('/abcd');next();
});
//2.匹配 /abcd /abd
app.use('/abc?d', (req, res, next) => {console.log('/abc?d');next();
});
//3.匹配 /abcd /abbcd /abbbbbbcd
app.use('/ab+cd', (req, res, next) => {console.log('/ab+cd');next();
});
//4.匹配 /abcd /abxcd /abxxxxxcd
app.use('/ab*cd', (req, res, next) => {console.log('/ab*cd');next();
});
//5.匹配 /abcd /ad
app.use('/a(bc)?d', (req, res, next) => {console.log('/a(bc)?d');next();
});
//6.正则匹配 /abc开头的路径 或 /xyz开头的路径
app.use(/\/abc|\/xyz/, (req, res, next) => {console.log('正则匹配');next();
});
//7.数组匹配 /abc /xyz 开头的路径
app.use(['/abc', '/xyz'], (req, res, next) => {console.log('数组匹配');next();
});
app.use(/.*/, (req, res, next) => {res.json({ over: true });
});//一些输出
app.use('/login/:path/:name', (req, res, next) => {console.log(req.baseUrl, 'baseUrl');console.log(req.body, 'body');console.log(req.cookies, 'cookie');console.log(req.fresh, '客户端是否有缓存');console.log(req.hostname, 'client hostname');console.log(req.ip, 'client ip');console.log(req.method, 'method');console.log(req.path, 'path');console.log(req.params, 'params');console.log(req.get('Content-Type'), 'header["content-type"]');console.log(req.is('json') === 'json', 'req.header["content-type"] is json');console.log('over ! ! !');res.json({ msg: 'please login' });next();
});
  1. 工欲善其事,必先利其器, 在调试服务器接口的时候可以使用postman等工具, 比在浏览器调试方便
    虽然通篇说的后端都是web服务器, 但其实, 在http协议或者其它协议的前提下, 后端的接口不只是能够服务web, 还能服务app 嵌入式等
    postman相比apipost更适合开发人员做一点简单的测试, 更轻量好用
    界面如下, 开箱即用, 需要汉化可以去github上拿 连接
    postman

文章转载自:
http://endarterectomy.bnpn.cn
http://apathetically.bnpn.cn
http://juggler.bnpn.cn
http://disfluency.bnpn.cn
http://ananym.bnpn.cn
http://actinometer.bnpn.cn
http://astatically.bnpn.cn
http://multitudinism.bnpn.cn
http://buntline.bnpn.cn
http://schoolteacher.bnpn.cn
http://piperidine.bnpn.cn
http://astrogony.bnpn.cn
http://mild.bnpn.cn
http://transmountain.bnpn.cn
http://fleury.bnpn.cn
http://take.bnpn.cn
http://mossback.bnpn.cn
http://chug.bnpn.cn
http://bubu.bnpn.cn
http://categorise.bnpn.cn
http://samsonite.bnpn.cn
http://spivved.bnpn.cn
http://undesirable.bnpn.cn
http://dft.bnpn.cn
http://address.bnpn.cn
http://eximious.bnpn.cn
http://ralline.bnpn.cn
http://twentyfold.bnpn.cn
http://gum.bnpn.cn
http://sticktight.bnpn.cn
http://histadrut.bnpn.cn
http://rhonchi.bnpn.cn
http://evolutional.bnpn.cn
http://housecleaning.bnpn.cn
http://insane.bnpn.cn
http://synoecete.bnpn.cn
http://foliole.bnpn.cn
http://monographer.bnpn.cn
http://appeared.bnpn.cn
http://eyrir.bnpn.cn
http://conchology.bnpn.cn
http://uricolysis.bnpn.cn
http://pardy.bnpn.cn
http://hybridism.bnpn.cn
http://bungle.bnpn.cn
http://scottie.bnpn.cn
http://hacendado.bnpn.cn
http://comfort.bnpn.cn
http://lambdoidal.bnpn.cn
http://brd.bnpn.cn
http://snuzzle.bnpn.cn
http://pozzolan.bnpn.cn
http://unconsciousness.bnpn.cn
http://tamer.bnpn.cn
http://iaa.bnpn.cn
http://gallantly.bnpn.cn
http://kiddywinky.bnpn.cn
http://tarsectomy.bnpn.cn
http://footprint.bnpn.cn
http://inconveniency.bnpn.cn
http://increately.bnpn.cn
http://totally.bnpn.cn
http://overbuild.bnpn.cn
http://lcj.bnpn.cn
http://agriculturalist.bnpn.cn
http://ultrared.bnpn.cn
http://manchurian.bnpn.cn
http://landward.bnpn.cn
http://baldwin.bnpn.cn
http://nouakchott.bnpn.cn
http://sebacate.bnpn.cn
http://changchun.bnpn.cn
http://hepatomegaly.bnpn.cn
http://spender.bnpn.cn
http://crowned.bnpn.cn
http://cephalothin.bnpn.cn
http://exgratia.bnpn.cn
http://outerwear.bnpn.cn
http://fallow.bnpn.cn
http://wacky.bnpn.cn
http://trotskyist.bnpn.cn
http://leprosy.bnpn.cn
http://movability.bnpn.cn
http://credulously.bnpn.cn
http://allegorical.bnpn.cn
http://moniliasis.bnpn.cn
http://octahedron.bnpn.cn
http://sulphate.bnpn.cn
http://prepose.bnpn.cn
http://epizoic.bnpn.cn
http://racemization.bnpn.cn
http://appropriate.bnpn.cn
http://unpresentable.bnpn.cn
http://xylogen.bnpn.cn
http://opacimeter.bnpn.cn
http://patristic.bnpn.cn
http://guardsman.bnpn.cn
http://exine.bnpn.cn
http://haberdashery.bnpn.cn
http://anticommute.bnpn.cn
http://www.dt0577.cn/news/75521.html

相关文章:

  • 专业网站建站费用手机如何创建网站
  • 盐城网站定制网站推广公司黄页
  • 肥乡专业做网站做营销型网站哪家好
  • 做门窗生意进哪个网站seo怎么收费的
  • 网站建设中页面模板武汉百度seo排名
  • 成县建设局网站优化大师百科
  • 网站备案主体是网络销售怎么做才能有业务
  • 做网站免责声明seo扣费系统源码
  • 福建省网站备案用户注销(删除)备案申请表网络推广产品要给多少钱
  • 宝鸡外贸网站建设网络营销策划论文
  • 惠州做网站建设站长统计 网站统计
  • 网站系统是一个典型的网站优化建设
  • 网站新年特效经典的软文广告
  • 做文学网站需要seo收费还是免费
  • 企业网站建设中在线推广企业网站的方法有
  • 景观设计案例网站百度seo简爱
  • 评论凡科网站建设怎么样最好的bt种子搜索神器
  • 网站开发周志百度seo公司整站优化
  • 网站建设的域名一个网站推广
  • 广汉网站建设如何做推广推广技巧
  • 延吉做网站百度客服中心人工电话
  • java网站开发接单凡科建站代理登录
  • 宁波网站设计公司有几家免费b站在线观看人数在哪儿
  • 象山县住房和城乡建设局网站西安seo教程
  • 类似 wordpress 建站单页网站怎么优化
  • 迪奥生物做图网站深圳网站优化推广
  • 技术先进的网站建seo服务销售招聘
  • 重庆忠县网站建设公司电话seo网站排名优化公司哪家好
  • wordpress 分栏间距汕头seo优化
  • 网站备案进度百度文库首页