同源策略限制一个加载于A origin的document或者script能够如何和来自于另外一个origin的resource交互。同源策略是隔离潜在恶意网页的安全机制。源的定义两个网页只有具有相同的protocol,port以及host才被认为是具有相同的origin的。比如http://xxx....
分类:
编程语言 时间:
2015-12-10 18:52:57
阅读次数:
192
//1.0 OC中 CGRect 、CGPoint、CGSize 的结构如下: struct CGRect { CGPoint origin; CGSize size; }; struct CGPoint { ...
分类:
编程语言 时间:
2015-12-09 11:41:33
阅读次数:
160
//! 一个视图可以有n个子视图,但是一个视图只能有一个父视图struct CGRect { CGPoint origin; CGSize size;};CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height){ CGRect r...
分类:
其他好文 时间:
2015-12-05 23:58:00
阅读次数:
381
git 删除远程分支 :git push origin :远程分支例如删除远程分支 osc(楼主的origin是 osc):wuzhiyi@IBM367-PB3Z5TM MINGW64 ~/workspace/HelloWorld/src/selenium (master)$ git push os...
分类:
其他好文 时间:
2015-12-04 18:33:59
阅读次数:
128
在使用jquery的$.ajax跨域访问的时候,如客户端域名是www.test.com,而服务器端是www.test2.com,在客户端通过ajax访问服务器端的资源将会报跨域错误:XMLHttpRequest cannot load http://www.test2.com/test.php. N...
分类:
数据库 时间:
2015-12-02 20:49:09
阅读次数:
390
一、存在远程仓库了,本地想克隆其代码:$ git clone git@git.oschina.net:winkey4986/Weather_demo.git二、本地有代码了,想在建个远程仓库保存代码,也可以作为中转站$ git remote add origin git@git.oschina.ne...
分类:
其他好文 时间:
2015-12-01 21:00:45
阅读次数:
185
Right triangles with integer coordinatesThe points P (x1, y1) and Q (x2, y2) are plotted at integer co-ordinates and are joined to the origin, O(0,0),...
分类:
其他好文 时间:
2015-11-30 22:20:59
阅读次数:
239
git clone https://github.com/JasonCheung2012/learngit.git #版本库网址git add zhangjiethu.txtgit commit -m "add a file"git push -u origin master #将你本地的仓库提交....
分类:
其他好文 时间:
2015-11-29 16:21:20
阅读次数:
133
1. 本地创建新项目git initgit add .git commit -m "First commit"2. 本地代码同步Push到远程仓库git remote add origin "https://github.com/zwffff/ag.git"git push -u origin ma...
分类:
其他好文 时间:
2015-11-27 19:53:23
阅读次数:
101
这几个都是在ios程序中,经常会注意到的一些小细节,能否真正了解这些,对写ios程序也有很大的好处。frame 是UIView中表示此view的一个矩形面积,包括了view在它的superview中的一些几何上的标识。有起始坐标,也就是origin(CGPoint)和这个矩形面积的宽(width)和...
分类:
其他好文 时间:
2015-11-26 12:57:58
阅读次数:
121