码迷,mamicode.com
首页 >  
搜索关键字:Route    ( 3964个结果
Vert.x-Web的讲解和使用(三)
接上章 Vert.x-Web的讲解和使用(三) 跨域资源共享(CORS handling) 跨域资源共享对于多个域请求一个资源是一个安全的机制。 Vert.x-Web包含了一个CorsHandler为你处理CORS协议。 例如: router.route().handler(CorsHandler.create("vertx\\.io").allowedMet...
分类:Web程序   时间:2015-08-06 16:52:56    阅读次数:181
leetCode(54):Gas Station
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to ...
分类:其他好文   时间:2015-08-06 11:15:43    阅读次数:135
PIM-SM
一、SM特点适合成员稀疏的环境,手动指定RP或自动选举(先选BSR,再选RP)源到RP的源路径树RP到接收者的共享树。二、周期性发送hello消息建立和维持邻居关系,来维持SPT树。选举两类DR,负责向RP发注册消息或join消息。三、共享树生成与剪枝route通过IGMP知道下面有成员时,向R..
分类:其他好文   时间:2015-08-04 15:54:08    阅读次数:195
python的一些总结4
这篇继续水 但是在水的的基础上 让搭建能正常使用flask 搭建一个站上篇讲到在 模板view中 输入{{xx }} 可以打印 后台传的值。 这篇讲一下 循环控制 条件控制等修改后台代码:1 @app.route('/')2 def hello_world():3 #return 'Hell...
分类:编程语言   时间:2015-08-04 15:00:50    阅读次数:156
laravel框架中注册信息验证
1.路由配置'blog.index','uses'=>'BlogController@index']);Route::get('/create',['as'=>'blog.create','uses'=>'BlogController@create']);Route::post('blog/stor...
分类:其他好文   时间:2015-08-04 10:57:59    阅读次数:116
laravel框架中widget模糊查询
1.配置模糊查询的路由Route::get('widget',function(){$filter=[['id','>','0'],['title','like','%aa%']];$data=Widget::datalist("article","widget.list",$filter,4);/...
分类:其他好文   时间:2015-08-04 10:55:23    阅读次数:125
flask中的request对象方法
'accept_charsets','accept_encodings','accept_languages','accept_mimetypes','access_route','application','args','authorization','base_url','blueprint',...
分类:其他好文   时间:2015-08-03 16:34:56    阅读次数:147
laravel named route
laravel中一般对于路由的使用方法是在routes.php中定义一个路由,在view中如果要引用一个url则直接通过来使用。但是随着应用的不断膨胀,想记住这些url也不是一个简单的事情。一种比较好的引用url的方式是 named route。 命名路由首先需要在routes.php中定义路...
分类:其他好文   时间:2015-08-02 23:05:29    阅读次数:138
HDU 1599 find the mincost route 最小路(最小环)
题意:给一个带权无向图,求其最小环的路径权之和。思路: (1)DFS可以做,实现了确实可以,只是TLE了。量少的时候应该还是可以水一下的。主要思路就是,深搜过程如果当前点搜到一个点访问过了,而其不是当前点的父亲,则肯定有环,可以更新答案。深搜过程要记录路径和,父亲,是否访问过等等信息,因为图可能有....
分类:其他好文   时间:2015-08-02 16:23:19    阅读次数:121
[LeetCode][Java] Gas Station
题目: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from statio...
分类:编程语言   时间:2015-08-01 22:01:59    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!