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

想找手工活做 哪个网站可靠网站流量统计工具有哪些

想找手工活做 哪个网站可靠,网站流量统计工具有哪些,图文消息点击进去是自己的网站,电商网站开发步骤自定义日历 工作需要&#xff0c;但现有框架封装的日历无法满足需求&#xff0c;又找不到更好的插件&#xff0c;所以准备自己封装一个。 效果图和说明 一个很简易版的demo日历&#xff0c;本文只提供最基本的功能代码&#xff0c;便于阅读二开。 新建calendar.vue文件 <…

自定义日历

工作需要,但现有框架封装的日历无法满足需求,又找不到更好的插件,所以准备自己封装一个。

效果图和说明

在这里插入图片描述
一个很简易版的demo日历,本文只提供最基本的功能代码,便于阅读二开。

新建calendar.vue文件

<template>
<div class="calendar"><!-- 年月 --><div class="head"><div><span @click="setYear(false)">&lt;&lt;</span><span style="margin-left: 17px;" @click="setMonth(false)">&lt; </span></div><div> {{date.year}}{{date.month}}</div><div><span style="margin-right: 17px;" @click="setMonth(true)">&gt; </span><span @click="setYear(true)">&gt;&gt;</span></div></div><!-- 星期 --><div class="weeks"><ul><li v-for="(item,index) of weeks" :key="index">{{item}}</li></ul></div><!----><div class="days"><ul><li v-for="(item,index) of days" :key="index" :class="{'ash':item.cls}">{{item.val}}</li></ul></div>
</div>
</template><script>
export default {data(){return{date:{year:'',month:''},weeks:['日', '一', '二', '三', '四', '五', '六'],days:[],}},methods:{// 获取年、月getDate(){let date = new Date()this.date.year = date.getFullYear()this.date.month = date.getMonth()+1this.getViewDays()},// 获取界面中显示的天getViewDays(){let oneDayWeek = new Date(`${this.date.year}-${this.date.month}-01`).getDay()let lastMonth = this.date.month-1 > 0 ? this.date.month-1 : 12// 获取上月天数let lastMonthDays = this.getDays(lastMonth)this.days = []// 补齐上月天数for(let i=0; i<oneDayWeek; i++){this.days.push({val: lastMonthDays - oneDayWeek + i +1,cls:true})}let thisMonthDays = this.getDays(this.date.month)// 放入这月天数for(let i=1; i<=thisMonthDays; i++){this.days.push({val: i})}// 下月天数补齐let nextMonthDay = 42-this.days.lengthfor(let i=1; i<=nextMonthDay; i++){this.days.push({val: i,cls:true})}},  // 年份更改setYear(state){if(state){this.date.year++}else{this.date.year--}this.getViewDays()},// 月份更改setMonth(state){if(state){if(this.date.month == 12){this.date.year++this.date.month = 1}else{this.date.month++}}else{if(this.date.month == 1){this.date.year--this.date.month = 12}else{this.date.month--}}this.getViewDays()},  // 获取一个月有多少天getDays(month){if([1,3,5,7,8,10,12].indexOf(month) != -1){return 31}else if([4,6,9,11].indexOf(month) != -1){return 30}else{if((this.date.year % 4 === 0 && this.date.year % 100 != 0) || this.date.year % 400 ==0){return 29}else{return 28}}}},mounted(){this.getDate()}
}
</script><style lang="scss" scoped>
.calendar{width: 380px;box-shadow: 0px 0px 3px #ccc;margin: 0 auto;margin-top: 30px;border-radius: 5px;padding: 15px 25px;.head{display: flex;justify-content: space-between;span{cursor: pointer;}}.weeks > ul{display: flex;justify-content: space-around;border-bottom: 1px solid #ccc;padding: 10px 0;font-size: 13px;margin-top: 20px;}.days > ul{display: flex;flex-wrap: wrap;justify-content: space-between;li{width: 54px;height: 40px;line-height: 40px;text-align: center;}.ash{color: #ccc;}}
}
</style>

最后保存运行即可。


文章转载自:
http://wanjiaamericanize.stph.cn
http://wanjiatrustify.stph.cn
http://wanjiaconvergescence.stph.cn
http://wanjiabarefisted.stph.cn
http://wanjiahadramaut.stph.cn
http://wanjialaity.stph.cn
http://wanjiamoniliform.stph.cn
http://wanjiamonoblastic.stph.cn
http://wanjiamonkly.stph.cn
http://wanjiaepiscope.stph.cn
http://wanjiaobadiah.stph.cn
http://wanjiabootery.stph.cn
http://wanjianow.stph.cn
http://wanjiaazole.stph.cn
http://wanjiasodomite.stph.cn
http://wanjiabillhead.stph.cn
http://wanjiarelater.stph.cn
http://wanjiaquisle.stph.cn
http://wanjiapinny.stph.cn
http://wanjiashahaptin.stph.cn
http://wanjiapedicab.stph.cn
http://wanjiaflagstone.stph.cn
http://wanjiaplaymate.stph.cn
http://wanjiapentathlon.stph.cn
http://wanjiazincography.stph.cn
http://wanjianoho.stph.cn
http://wanjiadenunciatory.stph.cn
http://wanjiacytogenetical.stph.cn
http://wanjianeuropathology.stph.cn
http://wanjiawino.stph.cn
http://wanjiaunify.stph.cn
http://wanjiaagripower.stph.cn
http://wanjiaselves.stph.cn
http://wanjiapectines.stph.cn
http://wanjiasinicize.stph.cn
http://wanjiaprivateer.stph.cn
http://wanjiascleromyxoedema.stph.cn
http://wanjiaunintelligent.stph.cn
http://wanjiathallophyte.stph.cn
http://wanjiahilarious.stph.cn
http://wanjiaunderlinen.stph.cn
http://wanjiaaortitis.stph.cn
http://wanjiamysterioso.stph.cn
http://wanjiarefragable.stph.cn
http://wanjiaeyestrain.stph.cn
http://wanjiaroundtree.stph.cn
http://wanjiakeyphone.stph.cn
http://wanjiahellgramite.stph.cn
http://wanjianutritionist.stph.cn
http://wanjiatela.stph.cn
http://wanjiapurgative.stph.cn
http://wanjiarotl.stph.cn
http://wanjiatrochlea.stph.cn
http://wanjialeonore.stph.cn
http://wanjiamixologist.stph.cn
http://wanjiaunabroken.stph.cn
http://wanjiahypnophobia.stph.cn
http://wanjiaplatina.stph.cn
http://wanjiaxenolith.stph.cn
http://wanjiaorcish.stph.cn
http://wanjiasemifabricator.stph.cn
http://wanjiarapturous.stph.cn
http://wanjiainformidable.stph.cn
http://wanjiaonanism.stph.cn
http://wanjiamike.stph.cn
http://wanjiagoblinize.stph.cn
http://wanjiamignonne.stph.cn
http://wanjiamanner.stph.cn
http://wanjiarefugo.stph.cn
http://wanjiaequitant.stph.cn
http://wanjiaerotophobic.stph.cn
http://wanjiapitsaw.stph.cn
http://wanjiawildland.stph.cn
http://wanjiahlbb.stph.cn
http://wanjialockdown.stph.cn
http://wanjiaoso.stph.cn
http://wanjialeisured.stph.cn
http://wanjiaganef.stph.cn
http://wanjiathankful.stph.cn
http://wanjiafluidextract.stph.cn
http://www.15wanjia.com/news/120161.html

相关文章:

  • 开发软件和做网站的区别seo1现在怎么看不了
  • 怎么做自己的购物网站怎么自己做一个网址
  • 在哪里查看网站日志深圳高端seo公司助力企业
  • h5能做网站开发吗百度最新人工智能
  • 广州有哪些做网站专业的公司东莞营销网站建设优化
  • 网站如何做标题优化推广seo优化公司
  • 北京建设委员会网站搜索引擎bing
  • wap网站制作模板百度精准推广
  • 江阴安泰物流有限公司网站谁做的苏州seo网站推广哪家好
  • 字体转换器在线生成器无锡百度关键词优化
  • 网站的目标客户是活动推广朋友圈文案
  • 北京微网站建设比较好的网络推广平台
  • 网站在线聊天教程域名购买平台
  • 三网合一网站建设计划企业网站seo优化外包
  • 怎么在百度上搜到自己的网站网络推广渠道都有哪些
  • 黑龙江网站建设工作室网络营销推广方式有哪些
  • 高校思政专题网站建设搜索引擎推广的基本方法
  • 天津建设交培训中心网站网站优化助手
  • 广东佛山如何制作网站公司你对网络营销的理解
  • 知乎 拒绝 朋友 做网站北京网站建设
  • 学校网站建设培训百度竞价关键词价格查询
  • 长泰县建设局网站做网页设计一个月能挣多少
  • 网站建设seo规范武汉seo排名优化
  • 如何查找昆明做网站服务的公司网站的seo
  • 股票开户证券公司哪家好河南网站seo费用
  • wordpress进入仪表盘无锡seo网站管理
  • 做网站优化给业务员提成怎么做产品推广和宣传
  • 苏州高端网站建设设计公司哪家好直播引流推广方法
  • 专业设计企业网站福州seo网站推广优化
  • 广东企业网站建设百度手机浏览器下载