摘要: Ubuntu安装Matplotlibubuntu下安装matplotlib的复杂度远远比windows下复杂的多,相对双击就能解决问题的,现在你需要时不时的解决编译带来的各种问题。1sudo apt-get install python-dev先安装numpy:12python setup.py b... 阅读全文
posted @ 2014-05-06 20:29 UCanBeFree 阅读(983) 评论(0) 推荐(0)
摘要: view: $(document).ready(function() { var ss="asdff"; $(".check").click(function(){ alert("OK"); $.ajax({ ... 阅读全文
posted @ 2014-05-05 18:54 UCanBeFree 阅读(134) 评论(0) 推荐(0)
摘要: js父节点:parentNode;子节点:childNode firstChild; lastChild;function func(o){//alert(o.parentNode.nextSibling.nextSibling.lengh); my=o.parentNode.parent... 阅读全文
posted @ 2014-05-05 14:56 UCanBeFree 阅读(259) 评论(0) 推荐(0)
摘要: Kohana模板是个很好用的东西,他可以使你的界面统一化。而且便于资源管理。我建立了几个文件,他们的路径是其中 demo.php是模板控制器。代码如下:auto_render) { // Initialize empty values ... 阅读全文
posted @ 2014-04-30 18:18 UCanBeFree 阅读(525) 评论(0) 推荐(0)
摘要: function Complex(real,imageInaery){ this.r=real; this.i=imageInaery; } var com = new Complex(1,3); //javascipt类和对象... 阅读全文
posted @ 2014-04-29 11:22 UCanBeFree 阅读(155) 评论(0) 推荐(0)
摘要: 这边我不要变。刷新好吗?请求数据 ajaxs基本用法。url="www.baidu.com?t="+Math.random();//避免缓存误导。var xmlhttp.open("GET",url,true);xmlhttp.send();ajax 提交POST数据 AJAX请求数据 阅读全文
posted @ 2014-04-29 10:53 UCanBeFree 阅读(454) 评论(0) 推荐(0)
摘要: 第一步:创建仓库:sudo svnadmin create /var/www/vcontroller更改配置文件/var/www/vcontroller/conf下:svnserve.conf1,去# 去前面的空格:anon-access = readauth-access = writepassw... 阅读全文
posted @ 2014-04-26 11:53 UCanBeFree 阅读(187) 评论(0) 推荐(0)
摘要: ORM::将数据表对象化。最常用的四个字段:_db_group_belongs_to:和_has_many组合,可以实现表联接查询。(->with('modelalias'))_has_many_table_name插入:$posts=ORM::factory('Posts');$posts->us... 阅读全文
posted @ 2014-04-21 17:48 UCanBeFree 阅读(188) 评论(0) 推荐(0)
摘要: display: table-header-group; 能使 th td 对齐。使为 2高度的 表格合并var numTd=$('.table tr td:nth-child(9)');会定位到第九个表格 阅读全文
posted @ 2014-04-18 17:22 UCanBeFree 阅读(99) 评论(0) 推荐(0)
摘要: 回调函数:让客户端自己决定返回值是什么。我想杀一个人用刀用枪如果用刀 比较费时间如果用枪 速度快但是要消耗子弹。让客户端自己选择//回调函数测试function knife(){echo "用刀了";}function gun(){echo "用枪了";}function call($pcall){... 阅读全文
posted @ 2014-04-18 15:00 UCanBeFree 阅读(154) 评论(0) 推荐(0)