<html><head><title>YouCube - The Blog for Cube Puzzlers</title><script type="text/javascript"> // Custom Date function to display a date in MM/DD/YYYY format Date.prototype.shortFormat = function() { return (this.getMonth() + 1) + "/" + this.getDate( Read More
posted @ 2012-12-05 17:30 vincent_ds Views(333) Comments(0) Diggs(0)
alert( $("#consult_textarea").val() ); alert( document.getElementById("consult_textarea").value );上面2行都是正确的下面2行是错误的!alert( $("#consult_textarea").value );alert( document.getElementById("consult_textarea").val() );今天就是在这个问题上浪费了很多时间!!谨记!! Read More
posted @ 2012-11-16 13:17 vincent_ds Views(187) Comments(0) Diggs(0)
function getDateStr(datestr){ var year = datestr.slice(0, 4); var month = datestr.slice(4, 6); var day = datestr.slice(6, 8); return year + "-" + month + "-" + day;}function toDateStr(datestr, n){ var year = datestr.slice(0, 4); var month = datestr.slice(5, 7); var int_day = par. Read More
posted @ 2012-11-16 10:59 vincent_ds Views(318) Comments(0) Diggs(0)
var a = new Array(1, 3, 5, 7, 9, 2, 4, 6, 8)for (var i = 0; i < a.length; i++) { for (var j = i + 1; j < a.length; j++) { if (a[i] > a[j]) { var n; n = a[j]; a[j] = a[i]; a[i] = n; } }} Read More
posted @ 2012-11-12 10:42 vincent_ds Views(247) Comments(0) Diggs(0)
var a=[1,2,3,5];alert(Math.max.apply(null, a));//最大值alert(Math.min.apply(null, a));//最小值多维数组可以这么修改:var a=[1,2,3,[5,6],[1,4,8]];var ta=a.join(",").split(",");//转化为一维数组alert(Math.max.apply(null,ta));//最大值alert(Math.min.apply(null,ta));//最小值 Read More
posted @ 2012-11-12 10:26 vincent_ds Views(38078) Comments(0) Diggs(1)
把PHP.ini 里面 extension=php_mysqli.dll 里面这句前面的引号去掉,然后重启apache,然后用phpinfo();查看配置参数是否已经成功加载了,如果成功加载你会见到有如这样的项: Read More
posted @ 2012-11-09 10:23 vincent_ds Views(29466) Comments(1) Diggs(0)
1.创建新的项目(project),创建完成之后单击工具栏的应用运行/调试(Select Run/Debug Configuration)的下拉菜单弹出 Edit Cofigurations选项,单击进入编辑对话框。(或者用菜单栏的 run - edit configuration). 如下图2.在编辑对话框框双击 Defaults或者单机工具栏的扳手按钮展开设置项,也可以但就Defaults左边的加号("+")图标来展开设置项。我们这里选择PHP Web Application,选择之后右边的对话框会显示对应的配置信息。如下图所示3.在上图中Server的下拉框选择要使用 Read More
posted @ 2012-11-09 01:08 vincent_ds Views(20400) Comments(0) Diggs(2)
1.如果Key是空的,那么该列值的可以重复,表示该列没有索引,或者是一个非唯一的复合索引的非前导列2.如果Key是PRI,那么该列是主键的组成部分3.如果Key是UNI,那么该列是一个唯一值索引的第一列(前导列),并别不能含有空值(NULL)4.如果Key是MUL,那么该列的值可以重复,该列是一个非唯一索引的前导列(第一列)或者是一个唯一性索引的组成部分但是可以含有空值NULL如果对于一个列的定义,同时满足上述4种情况的多种,比如一个列既是PRI,又是UNI那么"desc表名"的时候,显示的Key值按照优先级来显示PRI->UNI->MUL那么此时,显示PRI一 Read More
posted @ 2012-11-04 18:14 vincent_ds Views(2972) Comments(0) Diggs(0)
body{background-color:#fff;}.gn_logo {display:none !important;}.gn_nav {display:none !important;}.gn_bg {background:none;!important;}.title_area .title{display:none !important;}.WB_global_nav .gn_search {margin-left:480px;}.templete_enter .enter{display:none !important;}#pl_rightmod_yunying {display Read More
posted @ 2012-10-29 21:00 vincent_ds Views(229) Comments(0) Diggs(0)
1.内容滚动器 slidercontentdemo:http://www.queness.com/post/3669/create-a-custom-content-slider-with-jquery下载地址:http://vdisk.weibo.com/s/gJU8w Read More
posted @ 2012-10-28 15:16 vincent_ds Views(163) Comments(0) Diggs(0)