官网Demo地址http://www.my97.net/demo/index.htm
<input type="text" class="Wdate" value="${year }-${month}" id="date" name="yearMonth" style="width:100px;"
onclick="WdatePicker({dateFmt:‘yyyy-MM‘, Mchanged:cFunc, ychanged:cFunc})"/>
<script>
function cFunc(){
var c = $dp.cal;
var m = c.newdate[‘M‘];
if(m < 10){
m = ‘0‘+m;
}
self.location.href = "${ctx}/ListedTradingMonth/toPage?yearMonth="+c.newdate[‘y‘]+‘-‘+m;
}
</script>
时间: 2025-01-11 13:49:27