2012年12月12日
摘要: ===========================index.html====================<!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.org/1999/xhtml"><head><meta http-equiv=" 阅读全文
posted @ 2012-12-12 12:02 fonyer 阅读(394) 评论(0) 推荐(0) 编辑
摘要: jQuery插件AjaxFileUpload可以实现ajax文件上传,下载地址:http://www.phpletter.com/contents/ajaxfileupload/ajaxfileupload.js主要参数说明: 1,url表示处理文件上传操作的文件路径,可以测试URL是否能在浏览器中直接访问,如上:upload.php 2,fileElementId表示文件域ID,如上:fileToUpload 3,secureuri是否启用安全提交,默认为false 4,dataType数据数据,一般选json,javascript的原生态 5,success提交成功后处理函数 6,erro 阅读全文
posted @ 2012-12-12 11:53 fonyer 阅读(1900) 评论(2) 推荐(0) 编辑
摘要: 操作:http://localhost/test/zimg.html效果:===============zimg.html代码===============<!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.org/1999/xhtml"><head>< 阅读全文
posted @ 2012-12-12 11:20 fonyer 阅读(698) 评论(0) 推荐(0) 编辑
摘要: //php当前循环为1,循环由里到外依次递增,break默认为1,例如跳出第2层循环for ($i=0;$i<3;$i++){ foreach (array(1,2,3) as $val){ foreach (array(1,2,3) as $val){ echo "1层循环<br/>"; break 2; //跳出第2层循环 } echo "2层循环<br/>"; } echo "3层循环<br/>";}//结果://1层循环//3层循... 阅读全文
posted @ 2012-12-12 09:46 fonyer 阅读(414) 评论(0) 推荐(0) 编辑