- 博客(9)
- 收藏
- 关注
转载 FILE_GET_CONTENTS 加数据头
$opts = array( http=>array( method=>"GET", header=>"Host: style.china.alibaba.com/r/n" . "Accept-language: zh-cn/r/n" . "User-Agent: mozilla/5.0 (windows; u; windows nt 5.1; zh-cn; rv:1
2010-05-27 12:06:00
696
转载 让ci的url检测通过中文字符
ci有自动的url过滤机制,如果是直接输入汉字会被拦截下例如 xx.com/aaa/bbb/中国 而且用urlencode也是不管用的需要把uri类扩展下,class MY_URI extends CI_URI { //put your code here function _filter_uri($str) { if ($str !=
2010-05-04 11:39:00
1767
转载 给body加onload事件
if (window.attachEvent) { window.attachEvent("onload", GetMyInfo);//IE}else { window.addEventListener("load", GetMyInfo, false);//FF}function GetMyInfo(){alert("Hello World!");}
2010-05-03 18:15:00
1056
原创 android 调试的小技巧
android 的虚拟机启动那个慢。。。。。。我机子上起码要5分钟。。每次调试 都启动 是很费力的。。所以 程序打开以后 就别关了。。。每次调试 直接 package explorer里面右键 run as -> android application 就可以了
2009-06-15 10:05:00
764
原创 新android程序 提示 no classfiles specified
产生:新建Android工程HelloAndroid后,出现错误。错误:[2009-05-04 12:46:54 - HelloAndroid] no classfiles specified[2009-05-04 12:46:54 - HelloAndroid] Conversion to Dalvik format failed with error 1原因:不
2009-06-15 09:39:00
5854
4
原创 CI里 自定义类 调用系统类
$CI = &get_instance();用这句就可以再自定义类中使用系统的类例如$CI->db->insert();
2009-05-22 16:48:00
733
原创 C#序列化的最简单办法
用序列化来保存程序状态真是太简单了 要是带文档的程序。。其实把变量都存在一个类里面。然后把类序列化直接保存打开。。是太安逸了。 下面说下步骤。首先声明个类。。 class xxxx 之前加入 [Serializable]标志 比如下面using System;using System.Collections.Generic;using System.Linq;u
2009-05-10 10:54:00
486
转载 c# 发送电子邮件代码
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Mail;using System.Windows.Forms;namespace FlashMail{ class MailSend { public FLashMailD
2009-05-10 10:48:00
953
转载 JS的屏幕尺寸
〈script〉function show() { var s = "网页可见区域宽:"+ document.body.clientWidth; s += "/r/n网页可见区域高:"+ document.body.clientHeight; s += "/r/n网页可见区域高:"+ document.body.offsetWidth +" (包括边线的宽)"; s += "/r/n网页可见区
2009-05-04 09:48:00
685
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人