码迷,mamicode.com
首页 >  
搜索关键字:req    ( 1392个结果
node.js基础之http请求
var http = require('http')http.createServer(function(req,res){ res.writeHead({'Content-type': 'text/html'}) res.write('hello world') res.end('response...
分类:Web程序   时间:2016-01-19 14:26:44    阅读次数:164
手机号码格式校验
router.post('/register',function(req,res,next){varrestResult=newRestResult();varmobile=req.body.mobile;if(!/1\d{10}/.test(mobile)){//手机号码格式校验restResul...
分类:移动开发   时间:2016-01-19 06:55:16    阅读次数:261
forword/ sendRediect
res.sendRedirect(),是重定向,相当于两次请求,两次相应,地址栏会发生变化。 在实际使用中,重定向不能传指。也就是在requset中储存的值在跳转到另外一个页面后,在目标页面提取不出来。req.getRequestDispatcher().forward(req,res)是跳转,转发...
分类:其他好文   时间:2016-01-19 01:36:58    阅读次数:130
微信支付sign生成方法
NSMutableDictionary *signParams = [NSMutableDictionary dictionary]; [signParams setObject: req.openID forKey:@"appid"]; [signParams setObj...
分类:微信   时间:2016-01-18 17:34:28    阅读次数:2602
python 3.x urllib学习
urllib.requestimport urllib.request as ururl='http://ie.icoa.cn'user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'req=ur.Request(url)req.ad...
分类:编程语言   时间:2016-01-18 10:23:04    阅读次数:183
e_msg_c_as_login_req 和 e_msg_c_as_login_if_no_register_req
e_msg_c_as_login_req e_msg_c_as_login_if_no_register_req这两条协议差不多第一个就是纯粹的登录,验证密码第二个游戏中游客模式,直接登录的模式,既包括注册又包括登录的功能for (std::map::iterator it = m_mapAreaI...
分类:其他好文   时间:2016-01-17 14:52:37    阅读次数:131
e_msg_c_as_register_req-注册存储过程
TOP:BEGIN #Routine body goes here...IF EXISTS(SELECT * FROM `global_account` WHERE `plantform_id` = in_plantform_id AND `plantform_sub_id` = in...
分类:其他好文   时间:2016-01-17 14:49:41    阅读次数:134
express的请求和相应对象
(1)请求对象:req req.params:一个数组,包含命过名的路由参数 req.query:get请求的查询字符串参数 req.body:post的请求体内容 req.route:关于当前匹配路由的信息,主要用于路由调试 req.cookies:一个对象,包含...
分类:其他好文   时间:2016-01-17 10:55:37    阅读次数:367
登录流程-1
登录流程-1(服务器是一个账号然后可以选择多个区,类似lol,其实就是把服务器列表发给客户端,账号就一个数据库,然后不同的服务器部署在不同的服务器上就是ip不同)e_msg_c_as_register_reqe_msg_c_as_login_req 返回服务器列表,注意客户端得到的服务器列表的id....
分类:其他好文   时间:2016-01-17 01:09:50    阅读次数:125
req.body取不到值的问题;
随着express升级,bodyParser从express中被分离了出来,因此,在使用express新版本的时候,需要npm install body-parser 来安装bodyParser。在app.js中要引入bodyParser。var bodyParser = require('body...
分类:其他好文   时间:2016-01-12 01:14:52    阅读次数:949
1392条   上一页 1 ... 87 88 89 90 91 ... 140 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!