上一页 1 ··· 6 7 8 9 10 11 12 下一页

2017年8月4日

js charAt()

摘要: 输出: 阅读全文

posted @ 2017-08-04 07:02 huodaihao 阅读(298) 评论(0) 推荐(0) 编辑

2017年8月3日

js null与undefined

摘要: 输出: 变量v0的内容为:1变量v1的内容为:null变量v2的内容为:undefined"null"和"undefined"相等 阅读全文

posted @ 2017-08-03 23:01 huodaihao 阅读(152) 评论(0) 推荐(0) 编辑

js日期

摘要: 范例2-6 阅读全文

posted @ 2017-08-03 22:58 huodaihao 阅读(142) 评论(0) 推荐(0) 编辑

js 输出格式化字符串

摘要: 范例2-10 阅读全文

posted @ 2017-08-03 22:56 huodaihao 阅读(2652) 评论(0) 推荐(0) 编辑

2017年7月18日

php fseek ftell

摘要: ', ftell($file_handle); //0 fseek($file_handle, 3);//该函数把文件指针从当前位置向前或向后移动到新的位置,新位置从文件头开始以字节数度量。 echo '', ftell($file_handle);//3 echo '', fgets($file_handle, 3);//34 阅读全文

posted @ 2017-07-18 06:45 huodaihao 阅读(144) 评论(0) 推荐(0) 编辑

2017年7月17日

php向文件写入

摘要: <?php header('Content-Type: text/html; charset=utf-8'); $file = './php34.txt'; $mode = 'w';//w, a, x // PHP提供了如下一些的打开模式: // R(read)读模式 // W(write)替换写模式,将文件内容清零,自动创建不存在的文件。 // A(app... 阅读全文

posted @ 2017-07-17 23:03 huodaihao 阅读(681) 评论(0) 推荐(0) 编辑

2017年7月16日

php上传文件类

摘要: _error; } public function __construct() { $this->_max_size = 1024*1024; $this->_type_map = array( '.png' => array('image/png', 'image/x-png'), '.j... 阅读全文

posted @ 2017-07-16 17:52 huodaihao 阅读(131) 评论(0) 推荐(0) 编辑

编码问题

摘要: var_dump(file_exists(iconv('UTF-8', 'GBK', './中文文件名.txt')));//代码中 路径中存在中文,编码的转换 $fileinfo['name'] = iconv('gbk', 'utf-8', $file);//目录文件名编码问题:展示时,将操作系统编码转换为响应数据编码。 // Windows gbk,项目utf-8,将... 阅读全文

posted @ 2017-07-16 17:16 huodaihao 阅读(66) 评论(0) 推荐(0) 编辑

php目录递归删除

摘要: <?php // $call_num = 0; $path = 'e:/test/'; $result = rmDirs($path, $n); var_dump($result); var_dump($n); /** * @param 目录地址 */ function rmDirs($path, &$call) { ++ $call; // ++ $GLOBALS['ca... 阅读全文

posted @ 2017-07-16 16:59 huodaihao 阅读(146) 评论(0) 推荐(0) 编辑

php嵌套数据

摘要: '; print_r($list); /** * @param 目录地址 */ function readDirsNested($path) { $nested = array();//存储当前目录下所有的文件 $dir_handle = openDir($path); while(false !== $file=readDir($dir_handle)) { ... 阅读全文

posted @ 2017-07-16 16:46 huodaihao 阅读(137) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 下一页

导航