正向代理是一个位于客户端和原始服务器(origin server)之间的服务器,为了从原始服务器取得内容,客户端向代理发送一个请求并指定目标(原始服务器),然后代理向原始服务器转交请求并将获得的内容返回给客户端。客户端必须要进行一些特别的设置才能使用正向代理。 反向代理正好相反,对于客户端而言它就像
分类:
其他好文 时间:
2016-01-30 22:21:11
阅读次数:
201
转载: http://blog.csdn.net/hudashi/article/details/7664631 一、基本 git rebase用于把一个分支的修改合并到当前分支。 假设你现在基于远程分支"origin",创建一个叫"mywork"的分支。 $ git checkout -b myw
分类:
其他好文 时间:
2016-01-30 13:25:48
阅读次数:
195
转载: http://blog.csdn.net/hudashi/article/details/7664457 Git中从远程的分支获取最新的版本到本地有这样2个命令: 1. git fetch:相当于是从远程获取最新版本到本地,不会自动merge git fetch origin master
分类:
其他好文 时间:
2016-01-30 13:24:56
阅读次数:
125
浅析Cross Origin Resource Sharing
分类:
其他好文 时间:
2016-01-30 02:10:51
阅读次数:
255
开始用的js闭包,android的可以,ios不好用,目前已经调试好用 function upload_img(){ var len=$("#imglist .new").length; wx.chooseImage({ count: 4-len, // 默认9 sizeType: ['origin
@font-face存在的问题: 1、不同浏览器支持不同格式 2、Firefox默认情况下不允许跨域font-face,除非你可以添加“Access-Control-Allow-Origin” header to the font. 一个暂时的解决方案: 1、去fontsquirrel.com下载需
分类:
其他好文 时间:
2016-01-28 15:11:37
阅读次数:
109
server{
listen8080;
includeenable-php.conf;
root/home/wwwroot/p_w_picpath;
location/
{
add_header‘Access-Control-Allow-Origin‘‘http://www.tisunion.com‘;
add_header‘Access-Control-Allow-Credentials‘‘true‘;
add_header‘Access-Control-Allow-Methods‘‘GET‘;
}
loc..
分类:
其他好文 时间:
2016-01-27 13:09:42
阅读次数:
108
第一种:在IIS添加如下标头即可Access-Control-Allow-Headers:Content-Type, api_key, AuthorizationAccess-Control-Allow-Origin:*完美解决跨域!第二种:调用端的项目也要同上面设置一样 $.ajax({ ...
分类:
Web程序 时间:
2016-01-26 18:18:10
阅读次数:
170
在本地新建了一个git 目录后,往往需要run这样两条命令1. git remote add origin(git repository的URL)例如https://github.com/Ray-Young/Test 【指定fetch信息】origin是仓库名,我们来看git pro上的一段解释:假...
分类:
其他好文 时间:
2016-01-26 18:02:42
阅读次数:
132
1.block式动画横向或纵向移动XY[UIView animateWithDuration:0.5 animations:^{ self.aView.frame = CGRectMake(_aView.frame.origin.x, _aView.frame.origin.y + 50, _...
分类:
其他好文 时间:
2016-01-25 21:22:59
阅读次数:
214