摘要: 今天用到&gt查了查资料就是这么个回事、 阅读全文
posted @ 2014-07-18 15:27 adstat 阅读(340) 评论(1) 推荐(0) 编辑
摘要: 1 // JavaScript Document 2 function chkname(form){ 3 var user = form.user.value; 4 if(user == ''){ 5 alert('请输入用户名'); 6 form.... 阅读全文
posted @ 2014-07-17 21:17 adstat 阅读(893) 评论(0) 推荐(0) 编辑
摘要: 1 var user = form.name.value; 2 var password = form.password.value; 3 var url = "chkname.php?user="+user+"&password="+password;//以前只知道aja... 阅读全文
posted @ 2014-07-17 18:04 adstat 阅读(4272) 评论(0) 推荐(0) 编辑
摘要: 分为4个步骤1:执行microtime(),获取当前的微秒数2:把获取的微秒数转换为double类型3:再用转换后的数字去乘以10000004:给随机数发生器播种,播种数为第三步得出的结果rand为生成0到RAND_MAX 之间的伪随机整数,RAND_MAX的值因平台不同而不同srand() 函数作... 阅读全文
posted @ 2014-07-17 15:02 adstat 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 1 dbtype=$dbtype; 14 $this->host=$host; 15 $this->user=$user; 16 $this->pwd=$pwd; 17 $this->dbname=$dbname; 18 }... 阅读全文
posted @ 2014-07-09 02:16 adstat 阅读(474) 评论(0) 推荐(0) 编辑
摘要: w3c手册定义和用法indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置stringObject.indexOf(searchvalue,fromindex)searchvalue必需。规定需检索的字符串值。fromindex可选的整数参数。规定在字符串中开始检索的位置。它的合法... 阅读全文
posted @ 2014-06-19 18:38 adstat 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 1 对不起,暂无留言!"; 7 }else{ 8 if(!isset($_GET["page"]) || !is_numeric($_GET["page"])){ 9 $page=1; //判断查询字符串page的值是否为空,如果为空则默认显示第1页 10 }else{ 11 $page=i... 阅读全文
posted @ 2014-06-19 05:06 adstat 阅读(3183) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-06-16 17:47 adstat 阅读(4262) 评论(0) 推荐(0) 编辑