JS快应用左右日期点击组件:
<template>
<div class="News-container">
<div style="margin: 0 auto;">
<image class="arrow" @click="reduce()" src="../img/zuo.png" style="margin-right: 10px;"></image>
<text class="yangli_text">{
{isDate}}</text>
<image class="arrow" @click="plus()" src="../img/you.png" style="margin-left: 10px;"></image>
</div>
</div>
</template>
<style>
.News-container {
width: 100%;
height: 100%;
background-color: #fff;
}
.arrow {
width: 40px;
height: 40px;
margin-top: 5px;
}
.yangli_text {
text-align: center;
font-size: 26px;
color: #c30f22;
}
</style>
<script>
let date = new Date()
let yea