https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Access_control_CORS 当一个资源请求一个其它域名或者另外一个端口的资源时会产生一个跨域HTTP请求(cross-origin HTTP request)。比如说,http://dom ...
分类:
Web程序 时间:
2017-03-25 17:32:28
阅读次数:
381
使用UIKit的坐标转换方法convertxxx,千万要注意: 一个控件可以转换子控件上的某个点,到另外一个控件上 但是不能转换自己本身的点,到另外一个控件上,否则会数量加倍 所以,一个控件若想转换本身的点到某个控件,最好加个superView 示例代码:[btn.superview convert ...
分类:
移动开发 时间:
2017-03-25 17:23:52
阅读次数:
210
一、转换 1、属性:transform 取值:none/transform-function(转换函数) 注意:如果要实现多个转换函数的话,可以用空格分开若干transform-function 2、转换的原点 默认情况,原点在元素的中心处,width*50%,height*50% 更换原点-属性: ...
分类:
Web程序 时间:
2017-03-23 23:43:24
阅读次数:
1585
拷贝远程库到本地 git clone URL 设置为本地库 git init 生成ssh ssh-keygen -t rsa -C "442966010@qq.com" cd ~/.ssh 拷贝其中数据 vi id_rsa.pub github 设置ssh 粘贴秘钥 设置邮箱和名字 git conf ...
分类:
其他好文 时间:
2017-03-23 13:32:08
阅读次数:
123
如果输入$ git remote add origin git@github.com:用户名/项目名.git 提示出错信息:fatal: remote origin already exists. 解決办法如下: 1、先输入$ git remote rm origin 2、再输入$ git remo ...
分类:
其他好文 时间:
2017-03-23 02:57:52
阅读次数:
181
1)删除提交记录git reset --hard "commit ID"e.g git reset --hard "0604b21f7f6e0c7abb8d73d56bfdb6e2d11836cd"git push origin HEAD --force※前提是对操作的repo目录,有force p ...
分类:
其他好文 时间:
2017-03-22 21:18:41
阅读次数:
126
ES6新特性在最新版谷歌浏览器上基本都能跑通,不需要什么babel就能测试了 参照文档:ES6标准入门;精选了部分重要特性 (一)let与块级作用域,const (二)解构赋值 (三)String扩展 (四)Number扩展 (五)Array扩展 (六)Function扩展 (七)Object扩展 ...
分类:
其他好文 时间:
2017-03-22 20:17:36
阅读次数:
205
def count(arg): #计算字符串 result = eval(arg) return result import re origin = "1 - 2 * ((60 - 20 +(-40.5/5) * (9 - 2*5/3 + 2*10 + 10*8/144 )) - (-4*3)/(1... ...
分类:
编程语言 时间:
2017-03-22 16:41:32
阅读次数:
182
1,射线 (1)Ray射线 A ray is an infinite line starting at origin and going in some direction. Ray是具有开始点和方向的无穷线。 构造: ...
分类:
其他好文 时间:
2017-03-22 13:06:56
阅读次数:
239
<httpProtocol> <customHeaders> <!-- 跨域配置 --> <add name="Access-Control-Allow-Origin" value="*" /> </customHeaders> </httpProtocol> ...
分类:
Web程序 时间:
2017-03-21 14:00:18
阅读次数:
227