下面是脚本之家为大家整理的一些格式化时间日期的函数代码,需要的朋友可以参考下。代码如下:Date.prototype.format = function(format){var o = {"M+" : this.getMonth()+1, //month"d+" : this.getDate(), ...
分类:
Web程序 时间:
2014-08-05 22:22:04
阅读次数:
220
function update(){ var iHeight=400; var iWidth=650; var iTop = (window.screen.availHeight-30-iHeight)/2; //获得窗口的垂直位置 var iLeft = (window.screen.availW...
分类:
其他好文 时间:
2014-08-05 22:03:00
阅读次数:
203
Scripts/Category.js调用方法:$(function () { BindCategory(); //默认绑定文本框中的值 BindCategoryData($("#txtCategoryId").val());})View Code绑定三级联动(详情见:http:/...
分类:
Web程序 时间:
2014-08-05 21:58:20
阅读次数:
330
多次看到DETERMINISTIC,一直很疑惑,今天做了一个实验。我们欺骗ORACLE说是一个DETERMINISTIC函数,它在SQL中只调用一次。如果不使用DETERMINISTIC,可以看到出来的值都不一样。使用DETERMINISTIC后,不同的会话都出来一样的值。
SQL> create or replace function f_t(i_p int) return number DE...
分类:
数据库 时间:
2014-08-05 19:26:30
阅读次数:
247
今天看到了一篇写的不错的文章,是有关对JQuery、js等一些源代码初识的内容,感觉写的还是不错,所以拿过来分享一下。文章的地址:http://my249645546.iteye.com/blog/17166291.对(function(){})();几乎所有的开源js代码开篇都是这样(functi...
分类:
Web程序 时间:
2014-08-05 19:02:49
阅读次数:
237
Javascript对象拷贝(clone),希望大家给点建议?1. [代码]方法代码 function cp(source, target) { function isBaseType(v) { var type = typeof v; var basetype = { "...
分类:
编程语言 时间:
2014-08-05 18:55:39
阅读次数:
218
很早之前在CSDN上发的博客,现在CSDN上得少了,就把这个转到园子里来//重写toString方法,将时间转换为Y-m-d H:i:s格式Date.prototype.toString = function(){ return this.getFullYear() + "-" + (this.ge...
分类:
Web程序 时间:
2014-08-05 18:38:09
阅读次数:
236
var $navFun = function() { var st = $(document).scrollTop(), headh = $("div.head").height()+$("div.jiu-nav-main ").height()+$("div.act-bg").height(); ...
分类:
其他好文 时间:
2014-08-05 18:29:39
阅读次数:
215
var Person = (function(){ var Constr; Constr = function(){ this.name = 'carl'; } Constr.prototype = { constructor : Constr, ...
分类:
编程语言 时间:
2014-08-05 18:24:59
阅读次数:
205
下面是JS代码:var curr = null; //curr为当前tab的标题,在else中赋值function addtab(href, tabtitle) { if (curr) { $('#cont...
分类:
其他好文 时间:
2014-08-05 18:13:49
阅读次数:
231