阿水大是大阿水
data: function () { return { rightBtns:initbtn(parent.layui.tab.getName()), name: parent.layui.tab.getName(), //权限标识 } },
实例
<script> var date = new Date(); var year = date.getFullYear(); var month = date.getMonth() + 1; var day = date.getDate(); if (month < 10) { month = "0" + month; } if (day < 10) { day = "0" + day; } var dateFrom=year+'-'+month+'-01' var dateTo=year+'-'+month+'-'+day console.log(dateFrom) console.log(dateTo) </script>
运行实例 »
点击 "运行实例" 按钮查看在线实例