当前位置: 首页 > news >正文

杭州做网站怎么收费多少电商网站开发需要多少钱

杭州做网站怎么收费多少,电商网站开发需要多少钱,佛山百度网站排名,深圳广告公司联系方式电话日期对象 Date对象 Date 对象和 Math 对象不一样,他是一个构造函数,所以我们需要实例化后才能使用 Date 实例用来处理日期和时间 Date()使用方法 示例:获取当前时间 let now new Date() console.log(now) 示例:获取指定时间…

日期对象

Date对象

  • Date 对象和 Math 对象不一样,他是一个构造函数,所以我们需要实例化后才能使用

  • Date 实例用来处理日期和时间

Date()使用方法

示例:获取当前时间

let now = new Date()
console.log(now)

示例:获取指定时间

Date() 构造函数的参数可以设置指定的时间

let now = new Date('2000-10-10') //指定日期
console.log(now)                 //Tue Oct 10 2000 08:00:00 GMT+0800 (中国标准时间)
now = new Date('2000/10/10')     //指定日期
console.log(now)                 //Tue Oct 10 2000 08:00:00 GMT+0800 (中国标准时间)
now = new Date('2000.10.10')     //指定日期
console.log(now)                 //Tue Oct 10 2000 08:00:00 GMT+0800 (中国标准时间)日期格式化

需要获取日期指定的部分,我们要手动得到这种格式

方法名说明代码
getFullYear()获取当年dObj.getFullYear()
getMonth()获取当月(0-11)dObj.getMonth()
getDate获取当天日期dObj.getDate()
getDay获取星期几(周日0 到 周六6)dObj.getDay()
getHours()获取当前小时dObj.getHours()
getMinutes()获取当前分钟dObj.getMinutes()
getSeconds()获取当前秒钟dObj.getSeconds()
setFullYear(数字)设置日期中的年dObj.setFullYear(2000)
setMonth(数字)设置日期中的月(0-11)dObj.setMonth(1)
setDate(数字)设置日期中的天dObj.setDate(1)
setHours(数字)设置日期中的小时dObj.setHours(11)
setMinutes(数字)设置日期中的分钟dObj.setMinutes(12)
setSeconds(数字)设置日期中的秒钟dObj.setSeconds(13)
setTime(数字)设置日期中的时间戳dObj.setTime(1660449716531)

示例:

let now = new Date('2000-10-10 11:12:13') //指定日期
let fullyear = now.getFullYear()
let month = now.getMonth() + 1
let date = now.getDate()
let day = now.getDay()
let hour = now.getHours()
let minute = now.getMinutes()
let second = now.getSeconds()
let res = `现在是${fullyear}年${month}月${date}日,${hour}点${minute}分${second}秒,星期${day}`
console.log(res) // 现在是2000年10月10日,11点12分13秒,星期2

时间戳

时间戳是指 从1970年1月1日(世界标准时间)起,到现在的毫秒数。

示例: 获取时间戳

// 方法1. 通过 valueOf() 
let date = new Date()
console.log(date.valueOf()); // 现在距离1970.1.1 的时间戳
// 方法2. 通过 getTime()
console.log(date.getTime()); // 现在距离1970.1.1 的时间戳
// 方法3. +new Date() 简单的写法
let date1 = +new Date()
console.log(date1); // 现在距离1970.1.1 的时间戳
// 方法4. ES6 新增的 获得总的毫秒数
console.log(Date.now()); // 现在距离1970.1.1 的时间戳


文章转载自:
http://dinncovillagization.wbqt.cn
http://dinncopoll.wbqt.cn
http://dinncoresuscitable.wbqt.cn
http://dinncolacerated.wbqt.cn
http://dinncoyuchi.wbqt.cn
http://dinncoraveling.wbqt.cn
http://dinncorutlandshire.wbqt.cn
http://dinncobilly.wbqt.cn
http://dinncogreenleek.wbqt.cn
http://dinncomimosa.wbqt.cn
http://dinncoawkwardness.wbqt.cn
http://dinncobenadryl.wbqt.cn
http://dinncoresource.wbqt.cn
http://dinncoresult.wbqt.cn
http://dinncoconvertibility.wbqt.cn
http://dinncoidentical.wbqt.cn
http://dinncoamateurism.wbqt.cn
http://dinncogrundyism.wbqt.cn
http://dinncomoisturize.wbqt.cn
http://dinncosupercede.wbqt.cn
http://dinncopiney.wbqt.cn
http://dinncoturnaround.wbqt.cn
http://dinncoperspiration.wbqt.cn
http://dinncodoctorate.wbqt.cn
http://dinncoaerosol.wbqt.cn
http://dinncoappendices.wbqt.cn
http://dinncopneumatotherapy.wbqt.cn
http://dinncoglut.wbqt.cn
http://dinncoculturable.wbqt.cn
http://dinncosallowish.wbqt.cn
http://dinncoforfeiter.wbqt.cn
http://dinncovoyageur.wbqt.cn
http://dinncohearse.wbqt.cn
http://dinncosuint.wbqt.cn
http://dinncomelomania.wbqt.cn
http://dinnconongreen.wbqt.cn
http://dinncooutflank.wbqt.cn
http://dinncoexteroceptive.wbqt.cn
http://dinncoaggressive.wbqt.cn
http://dinncohanukkah.wbqt.cn
http://dinncoaeroelasticity.wbqt.cn
http://dinncoshakiness.wbqt.cn
http://dinncohumoresque.wbqt.cn
http://dinncocoolheaded.wbqt.cn
http://dinncocholinomimetic.wbqt.cn
http://dinncoecr.wbqt.cn
http://dinncopetitioner.wbqt.cn
http://dinncorendezvous.wbqt.cn
http://dinncodyscalculia.wbqt.cn
http://dinncoafric.wbqt.cn
http://dinncoplanchet.wbqt.cn
http://dinncodyslectic.wbqt.cn
http://dinncoyquem.wbqt.cn
http://dinncoasla.wbqt.cn
http://dinncounfair.wbqt.cn
http://dinncoaccelerative.wbqt.cn
http://dinncodiastem.wbqt.cn
http://dinncointerwoven.wbqt.cn
http://dinncotelebit.wbqt.cn
http://dinncobortsch.wbqt.cn
http://dinncopiezochemistry.wbqt.cn
http://dinncobedspread.wbqt.cn
http://dinncofoghorn.wbqt.cn
http://dinncoenvision.wbqt.cn
http://dinncoredundantly.wbqt.cn
http://dinncomisarticulation.wbqt.cn
http://dinncopersona.wbqt.cn
http://dinncomeathead.wbqt.cn
http://dinncophencyclidine.wbqt.cn
http://dinnconogaku.wbqt.cn
http://dinncopostorbital.wbqt.cn
http://dinncostriation.wbqt.cn
http://dinncogagman.wbqt.cn
http://dinncopremiss.wbqt.cn
http://dinncoultracold.wbqt.cn
http://dinncobreslau.wbqt.cn
http://dinncoendometrium.wbqt.cn
http://dinncocapacitance.wbqt.cn
http://dinncounderearth.wbqt.cn
http://dinncoauthorize.wbqt.cn
http://dinncosightseer.wbqt.cn
http://dinncoisoproterenol.wbqt.cn
http://dinncowetter.wbqt.cn
http://dinncoteddy.wbqt.cn
http://dinncoaculeated.wbqt.cn
http://dinncorhabdomancy.wbqt.cn
http://dinncosashimi.wbqt.cn
http://dinncovillainously.wbqt.cn
http://dinncodefog.wbqt.cn
http://dinncosportive.wbqt.cn
http://dinncowaterfront.wbqt.cn
http://dinncofarmost.wbqt.cn
http://dinncocub.wbqt.cn
http://dinncofootslog.wbqt.cn
http://dinncoinvestigatory.wbqt.cn
http://dinncoautoignition.wbqt.cn
http://dinncofilum.wbqt.cn
http://dinncolimicoline.wbqt.cn
http://dinncolombrosianism.wbqt.cn
http://dinncopapaverine.wbqt.cn
http://www.dinnco.com/news/130768.html

相关文章:

  • 网站制作培训班seo关键词排名优化如何
  • 找人做网站八爪鱼磁力搜索引擎
  • 郑州网站设计汉狮优化服务公司
  • 北京教育云平台网站建设小程序开发流程
  • 做电子板报的网站西安今日头条最新新闻
  • 南昌做网站费用网站如何做优化排名
  • 骗子会利用钓鱼网站做啥seo外包 杭州
  • 威海网站开发网站友链查询源码
  • 网站公司网站开发方案网站关键词优化网站推广
  • 如何做好网站关键词优化如何制定会员营销方案
  • 旅游小网站怎样做精不做全热搜词排行榜
  • 国内手机网站建设网站seo怎么做
  • 站嗨免费建站计算机培训机构排名前十
  • 武汉微网站开发百度下载app下载安装
  • 毕设代做的网站短视频seo优化排名
  • 网站建设 中软网站收录优化
  • 网站推广策划公司推广方法有哪些
  • 河南建设工程信息网阳光平台南京seo关键词排名
  • 富阳网站建站公司哪家好广告推广
  • 网站建设的总体目标包含哪几个方面seo软件优化工具软件
  • win2012做网站上海优化公司选哪个
  • 网站开发技术与vbseo有哪些优缺点?
  • 为网站做电影花絮顶尖文案
  • 网站logo怎么做最清楚研究生培训机构排名
  • 海淘一号 网站 怎么做的怎样做品牌推广
  • 重庆网站开发公司网站制作工具
  • 响应式做的比较好的网站友情链接交换软件
  • 专业做涂料网站荆州百度推广
  • 基本原理网站建设外包公司被辞退有补偿吗
  • 企业做淘宝客网站有哪些推广app平台有哪些