我正在使用日期范围选择器 jQuery。我需要更改开始、结束和标题日期格式。这是我到目前为止所尝试的。
$('#from-todate').daterangepicker({
ranges: {
"setDate": new Date(),
'Today': [moment(), moment()],
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'This Month': [moment().startOf('month'), moment().endOf('month')],
'Last 6 Month': [moment().subtract(6, 'month').startOf('month'), moment().subtract(6, 'month').endOf('month')],
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},
"alwaysShowCalendars": true,
"opens": "left",
"applyClass": "btn-primary",
"cancelClass": "hide-btn",
"startDate": monthStartDate,
"endDate": todaysdate,
"maxDate": todaysdate,
}, function (start, end, label) {
SetDates(start.format('YYYY-MM-DD'), end.format('YYYY-MM-DD'));
console.log("New date range selected: ' + start.format('YYYY-MM-DD') + ' to …
Run Code Online (Sandbox Code Playgroud) 我在实现以下代码时遇到问题.我想通过悬停另一个元素来影响元素.这是我的代码.
<div class="banner">
<div class="first">
<a href="Http://www.nytimes.com"><b>T</b></a>
</div>
<div class="second">
<ul class="navigation" style="; border-radius: 10px; ">
<p style="display: inline" id="hp">
<a href="http://www.nytimes.com">Go Back To Home</a>
</p>
<li><a href="http://www.somelink.com">Women Fashin</a></li>
<li><a href="http://www.somelink.com">Men fashion</a></li>
</ul>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我希望#hp
通过悬停来影响.first
.我怎样才能达到这个效果?