//控制placeHolder的位置,左右缩20 -(CGRect)placeholderRectForBounds:(CGRect)bounds { CGRect inset = CGRectMake(bounds.origin.x+100, bounds.origin.y, bounds.siz ...
分类:
其他好文 时间:
2016-04-26 00:36:26
阅读次数:
239
JavaScript是一种在Web开发中经常使用的前端动态脚本技术。在JavaScript中,有一个很重要的安全性限制,被称为“Same-Origin Policy”(同源策略)。这一策略对于JavaScript代码能够访问的页面内容做了很重要的限制,即JavaScript只能访问与包含它的文档在同 ...
分类:
其他好文 时间:
2016-04-21 15:07:25
阅读次数:
164
echo "# a" >> README.md git init git add README.md git commit -m "first commit" git remote add origin git@github.com:wys1990/a.git git push -u origin ...
分类:
其他好文 时间:
2016-04-19 14:17:02
阅读次数:
126
Explanation: Fetch will download everything from another repository, in this case, the one marked as "origin". Reset will discard changes and revert t ...
分类:
其他好文 时间:
2016-04-19 00:20:09
阅读次数:
173
在多人合作的项目里,git pull origin master执行完之后出现以下问题: Auto-merging .DS_Store CONFLICT (content): Merge conflict in .DS_Store Automatic merge failed; 原因是.DS_Sto ...
分类:
其他好文 时间:
2016-04-18 20:42:07
阅读次数:
440
.htaccess添加下面代码: web.config设置下面代码: ...
分类:
数据库 时间:
2016-04-18 13:20:57
阅读次数:
187
最近部门有人书写了一篇很好的Git协作方式,操作也简单,分支能以保持一条干净的线进行协作开发。这里做个笔记,方便之后查看。 PS:本文非原创。 原则 对策 步骤 1. Clone项目 2. 获取远端最新状态,并从 origin/dev 上创建自己的分支 此分支应只有你自己使用 3. 查看、确认修改, ...
分类:
其他好文 时间:
2016-04-16 22:42:38
阅读次数:
235
在JavaScript中,有一个很重要的安全性限制,被称为“Same- Origin Policy”(同源策略)。这一策略对于JavaScript代码能够访问的页面内容做了很重要的限制,即JavaScript只能访问与包含它的文档或脚本 在同一域名下的内容。不同域名下的脚本不能互相访问,即便是子域也 ...
分类:
Web程序 时间:
2016-04-16 18:19:07
阅读次数:
184
#pragma mark - 手势 总共有五种手势 分别为 Tap点击 Pan拖拽 LongPress长时间按压 Pinch捏合手势 rotation旋转 1. 定义成员变量 UIImageView *_imgView; 定义UIImageView, 响应手势方法时调用 CGPoint origin ...
分类:
其他好文 时间:
2016-04-16 13:48:56
阅读次数:
153
报的错误是 No 'Access-Control-Allow-Origin' header is present on the requested resource. ...
分类:
Web程序 时间:
2016-04-16 10:50:28
阅读次数:
155