echo和print都可以做输出,不同的是,echo不是函数,没有返回值,而print是一个函数有返回值,所以相对而言如果只是输出
echo 会更快,而print_r通常用于打印变量的相关信息,通常在调试中使用。echo 不是函数,没有返回值print 是打印字符串print_r
则是打印复合...
分类:
其他好文 时间:
2014-04-30 21:18:17
阅读次数:
409
1.page language="c#"//语言c#;2.AutoEventWireup="true"
/自动关联处理函数;3.CodeFile="Default.aspx.cs"//关联文件;4.Inherits="_Default"
//继承于_Default;3、4 表示aspx其实继承于cs...
分类:
Web程序 时间:
2014-04-30 21:08:46
阅读次数:
550
1.文件的基本操作1.1文件的打开或创建文件的打开或创建可以使用内置函数file(别名open)。函数声明如下:file(name[,mode[,buffering]])->fileobject或open(name[,mode[,buffering]])->fileobject其中,name表示被打...
分类:
编程语言 时间:
2014-04-30 19:48:22
阅读次数:
517
在做项目时遇到了这个异常,网上一查才知道 JSTL core库的版本问题。
当我们在web.xml中使用: ..... 时 我们在jsp才用方式引入。 而当我们的web.xml是 或 则需要: 在jsp中用方式引入。
若若版本不对应在运行时可能...
分类:
其他好文 时间:
2014-04-30 19:40:13
阅读次数:
443
1、jQuery获取Select元素,并选择的Text和Value: 1.
$("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发 2. var
checkText=$("#select_id").find(.....
分类:
Web程序 时间:
2014-04-30 19:27:58
阅读次数:
555
获取contextPath 获取requestURI
分类:
其他好文 时间:
2014-04-29 11:41:46
阅读次数:
313
1 package com.test; 2 3 import java.io.File; 4
import java.io.FileInputStream; 5 import java.io.FileOutputStream; 6 import
java.io.InputStream...
分类:
编程语言 时间:
2014-04-29 11:35:47
阅读次数:
520
创建FileWriter对象时的细节
有可能会产生编译时异常IOException和运行时异常FileNotFoundException 使用构造方法FileWriter(String
fileName)或FileWriter(File file)创建FileWriter对象时 指定文件不存在 --...
分类:
其他好文 时间:
2014-04-29 11:27:46
阅读次数:
646
未命名import java.text.DateFormat;import
java.text.ParseException;import java.text.SimpleDateFormat;import
java.util.Date;import java.util.regex.Pattern;...
分类:
编程语言 时间:
2014-04-29 11:15:46
阅读次数:
619
http://www.ttlsa.com/?s=sphinx
分类:
其他好文 时间:
2014-04-29 10:42:47
阅读次数:
229