![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
pandajava
这个作者很懒,什么都没留下…
展开
-
(1)js 获取当前日期 前N天或者后N天日期 且可指定格式 如yyyy-mm-dd等
New Document /* * fomateDate Function */ //bZone 个位数x 替换为0x function fomateDate(oDate, sFomate, bZone) { sFomate = sFomate.replace("YYYY", oDate.getFullYear()); sFomate = sFomate.原创 2015-08-25 15:23:33 · 1022 阅读 · 0 评论 -
(2)如何在Javascript中自定义类 & 面向对象编程 (封装)
Javascript是面向对象的,在这篇文章中,我们主要说一下如何在Javascript中自定义类。 我们现在要定义一个Person类,这个类具有人最基本的属性name,代码如下: var Person = function (name) { this.name = name; this.showMe = function () {转载 2015-08-26 15:27:06 · 1254 阅读 · 0 评论