2014年3月31日

PHP数组和Json之间的转换

摘要: PHP数组和Json之间的转换http://www.cnblogs.com/xmphoenix/archive/2011/05/26/2057963.html对象和Json之间的转换http://www.cnblogs.com/konbluesky/articles/2098587.html php数组使用json_encode函数中文被编码成null的原因和解决办法 json格式在开发中用的十分广泛。在php中json_encode函数可以直接将数组转成 json格式,十分方便。但是有可能你在使用json_encode函数时,无奈的发现中文被编码成null了。原来json只支持转... 阅读全文

posted @ 2014-03-31 14:01 < Angus > 阅读(464) 评论(0) 推荐(0) 编辑

2014年2月21日

js用','切割字符串之后验证

摘要: 传过来的数据内容是 121212121,5454545454,4545454,45454545,5545445,54545……注意给逗号为英文逗号js代码部分var exphone = $("#phone").val().split(','); for( var i = 0 ;i < exphone.length; i++) { alert(exphone[i].length); } // js用,切割字符串之后验证 如果换行切割用 split('\n') 阅读全文

posted @ 2014-02-21 13:58 < Angus > 阅读(269) 评论(0) 推荐(0) 编辑

js改变下拉框 提示不同信息

摘要: js代码部分$('#phone_type').change(function(){ var phone_type = $("#phone_type option:selected").val(); if(phone_type =='1'){ $('#fixed').css('display','none'); $('#like').css('display','block'); }else{ $('#fixed').css(' 阅读全文

posted @ 2014-02-21 13:51 < Angus > 阅读(379) 评论(0) 推荐(0) 编辑

2014年2月19日

js区别IE6、IE7、IE8之间的方法

摘要: js区别IE6、IE7、IE8之间的方法:var isIE=!!window.ActiveXObject;var isIE6=isIE&&!window.XMLHttpRequest;var isIE8=isIE&&!!document.documentMode;var isIE7=isIE&&!isIE6&&!isIE8;if (isIE){ if (isIE6){ alert(”ie6″); }else if (isIE8){ alert(”ie8″); }else if (isIE7){ alert(”ie7″); }} 阅读全文

posted @ 2014-02-19 17:17 < Angus > 阅读(359) 评论(0) 推荐(0) 编辑

js操作节点

摘要: js操作节点(添加、删除、更改属性)1.创建节点并添加内容:使用的方法:createElement和createTextNode HTML DOM 2,删除节点 方法:getElementsByTagName和removeChild HTML DOM hello world!3.替换节点 方法replace(new,old) HTML DOM hello world!4.插入新消息 insertBefore(new,old) HTML DOM hello world!5,文档碎片 HTML DOM hello world!6,操作document元素... 阅读全文

posted @ 2014-02-19 16:02 < Angus > 阅读(215) 评论(0) 推荐(0) 编辑

2014年1月22日

LAMP环境搭建教程

摘要: LAMP环境搭建教程操作系统:centos6.3httpd-2.4.2.tar.gzhttp://httpd.apache.org/download.cgimysql-5.0.18.tar.gzhttp://dev.mysql.com/downloads/php-5.4.3.tar.gzhttp://www.php.net/downloads.php详细过程 感谢http://www.php100.com/html/itnews/it/2013/0219/12062.html 阅读全文

posted @ 2014-01-22 10:53 < Angus > 阅读(132) 评论(0) 推荐(0) 编辑

数据库触发器

摘要: 触发器 其是一种特殊的存储过程。一般的存储过程是通过存储过程名直接调用,而触发器主要是 通过事件(增、删、改)进行触发而被执行的。其在表中数据发生变化时自动强制执行。 常见的触发器有两种:after(for)、instead of,用于insert、update、delete事件。 after(for)表示执行代码后,执行触发器 instead of表示执行代码前,用已经写好的触发器代替你的操作触发器语法: create trigger 触发器的名字 on 操作表 for|after instead of update|insert|delete as SQL语句触发器示... 阅读全文

posted @ 2014-01-22 10:51 < Angus > 阅读(204) 评论(0) 推荐(0) 编辑

2013年12月26日

PHP linux 远程监控软件 Nagios

摘要: Nagios远程监控软件的安装与配置详解 阅读全文

posted @ 2013-12-26 16:34 < Angus > 阅读(62) 评论(0) 推荐(0) 编辑

2013年12月25日

CodeIgniter CI框架前后台搭建------主控制器拆分为前后台控制器

摘要: CodeIgniter CI框架前后台搭建------主控制器拆分为前后台控制器 终于找到的最好的方法了在告诉你最好的方法的之前,先说一句话,这个是CI的特点就是这个,不要盲目视图改变。如果想在mvc中分开前后台,最好的方法是方便在mvc三个目录下建好两文件 admin和home。访问是加上文件夹... 阅读全文

posted @ 2013-12-25 22:33 < Angus > 阅读(1759) 评论(0) 推荐(0) 编辑

导航