摘要:
1 //生成一个连接 2 $db_connect=mysql_connect($dbhost,$username,$userpass) or die("Unable to connect to the MySQL!"); 3 4 //选择一个需要操作的数据库 5 mysql_select_db($... 阅读全文
摘要:
var names = $("names");var pwds = $("pwds");var ts1 = $("ts1");var ts2 = $("ts2");var ts3 = $("ts3");function subtton(){ if(names.value ==null||names.... 阅读全文
摘要:
";for($q=1;$q";}for($q=1;$q";}echo "空心菱形";echo "";for($p=1;$p"; } else{ for($b=0;$b"; $b++; }}?> 阅读全文
摘要:
";//}//===============================平行四边行//for($R = 10;$R ";//}//菱形的上部分//for($R = 1;$R ";//}for($t = 0;$t ";}?> 阅读全文
摘要:
name = $name; $this->pwd = $pwd; $this->age = $age; } public function intro(){ echo "我的名字是:".$this->name." 我的密码是:".$this->pwd; }}$p1 = new Person("zha... 阅读全文
摘要:
phoneNumber.match(/^1[3|4|5|8][0-9]\d{4,8}$/) 阅读全文
摘要:
//校验是否全由数字组成function isDigit(s){var patrn=/^[0-9]{1,20}$/;if (!patrn.exec(s)) return falsereturn true}//校验登录名:只能输入5-20个以字母开头、可带数字、“_”、“.”的字串function i... 阅读全文
摘要:
第一个是相等符;第二个全等符;其中第一个在比较的时候,会进行类型转换,而第二个则不会,alert('55' == 55);//truealert('55' === 55);//false 阅读全文
摘要:
/**方法:Array.remove(dx)*功能:根据元素值删除数组元素.*参数:元素值*返回:在原数组上修改数组*作者:pxp*/Array.prototype.indexOf=function(val){for(vari=0;i-1){this.splice(index,1);}};/**方法... 阅读全文
摘要:
第一张表封装函数"; echo ""; echo $row[1]; echo ""; echo ""; echo $row[2]; echo ""; echo ""; echo $row[3]; ... 阅读全文