上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
  2016年3月10日
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-03-10 09:16 让心开始 阅读(649) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-03-10 09:12 让心开始 阅读(200) 评论(0) 推荐(0) 编辑
摘要: <?php //定义有默认值的函数 function Main3($f=5,$g=6) { echo $f*$g; } Main3(2,3); echo "<br />"; //可变参数的函数(参数数量可以改变) function Main4() { for($i=0;$i<func_num_arg 阅读全文
posted @ 2016-03-10 09:07 让心开始 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 语句 1、分支语句 (1)if例子:$a=9;$b=5;if($a>$b){echo $a."比".$b."大";}else{echo $a."比".$b."小";}(2)if...else...(3)if...else if...else(4)if的嵌套(5)switch..case..例子:$c 阅读全文
posted @ 2016-03-10 09:05 让心开始 阅读(273) 评论(0) 推荐(0) 编辑
  2016年3月1日
摘要: <body> <form action="chuli.php" method="post" enctype="multipart/form-data"> <input type="file" name="file" /> <input type="submit" value="上传"/> </for 阅读全文
posted @ 2016-03-01 09:46 让心开始 阅读(176) 评论(0) 推荐(0) 编辑
摘要: <?php //echo filetype("./1.jpg"); //判断文件类型 文件:file //echo filetype("./code"); //目录 dir //echo is_dir("code"); //判断是不是目录 //echo is_file("1.jpg"); //判断是 阅读全文
posted @ 2016-03-01 09:43 让心开始 阅读(310) 评论(0) 推荐(0) 编辑
  2016年2月21日
摘要: // 每个弹窗的标识 var x =0; var idzt = new Array(); var Window = function(config){ //ID不重复 idzt[x] = "zhuti"+x; //弹窗ID //初始化,接收参数 this.config = { width : con 阅读全文
posted @ 2016-02-21 16:16 让心开始 阅读(383) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-02-21 16:12 让心开始 阅读(147) 评论(0) 推荐(0) 编辑
  2016年2月19日
摘要: <?php try{ $dsn = "mysql:dbname=mydb;host=localhost"; $pdo = new PDO($dsn,"root","123"); } catch(PDOException $e) { echo "连接出错".$e->getMessage(); } $s 阅读全文
posted @ 2016-02-19 10:58 让心开始 阅读(324) 评论(0) 推荐(0) 编辑
  2016年2月17日
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2016-02-17 15:51 让心开始 阅读(172) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页