仿照其他类重写的工具类,我们在工程中,或多或少的要修改控件的坐标-宽度-高度,于是,经常性的见到大家self.view.frame.origin.x, self.view.frame.size.width...
分类:
其他好文 时间:
2014-12-10 12:38:23
阅读次数:
261
在开始正文前,先说下Axiom3D里遇到的二个BUG. 1.在启动axiom生成的程序中,我发现输出里总是有一些如"billboard_type","billboard_origin"这些不能解析,我开始还在想是不是文件格式版本过期或是啥的,反正后面我查了下,发现这些是有对应解析类的,在对比对...
分类:
编程语言 时间:
2014-12-10 01:42:41
阅读次数:
325
Ajax跨域的另一种实现CORS(Cross-Origin Resource Sharing),支持GET、POST、PUT、DELETE等http方法。
分类:
其他好文 时间:
2014-12-10 00:22:08
阅读次数:
315
JavaScript是一种在Web开发中经常使用的前端动态脚本技术。在JavaScript中,有一个很重要的安全性限制,被称为“Same- Origin Policy”(同源策略)。这一策略对于JavaScript代码能够访问的页面内容做了很重要的限制,即JavaScript只能访问与包含它的文档 ...
分类:
Web程序 时间:
2014-12-09 22:55:26
阅读次数:
253
cd /path/to/my/repo (sourcetree 创建的文件夹)
git remote add origin https://......
git remote set-url origin
https://.....
git push -u origin --all # pushes up the repo and its refs for the first time
...
分类:
其他好文 时间:
2014-12-08 17:53:44
阅读次数:
135
git branch:查看当前的分支
git branch Common:创建分支Common
git checkout Common:切换到分支Common
git remote add origin git@github.com:changjiang007/kelehuSystem.git : 连接远程仓库,并将此远程仓库在本地命名为origin
git remote -v...
分类:
其他好文 时间:
2014-12-06 18:19:16
阅读次数:
205
1、exists/not exsists select?
??b.yid?yid,?b.ytid?ytid?
from?
??t_user?a,?t_yidytidmapping?b?
where?
??a.fk_origin_user?=?b.ytid?
and?
??not?exists?(select?*?from?t_use...
分类:
数据库 时间:
2014-12-04 14:08:00
阅读次数:
200
在引用路由之前写下如下代码:app.use('*', function(req, res, next) {res.header("Access-Control-Allow-Origin", "*");res.header("Access-Control-Allow-Headers",'Content...
分类:
Web程序 时间:
2014-12-01 20:40:42
阅读次数:
183
用ajax加载一个本地的html文件,结果别的浏览器都可以显示,唯独谷歌浏览器不行,错误提示如下:Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, c...
分类:
Web程序 时间:
2014-12-01 19:06:27
阅读次数:
425
允许被跨域请求 |----->b.com/xx.jsa.com |----xx.js |----xx.cssa.com下要请求b.com下的资源,会被禁止,因为跨域。在b.com的响应头中增加Access-Control-Allow-Origin:a.com就可以允许跨域了。Acces...
分类:
数据库 时间:
2014-12-01 15:53:45
阅读次数:
195