我的日期选择器有问题。我使用http://dev.jtsage.com/jQM-DateBox2/作为选择器。
正如你在我的小提琴中看到的:http: //jsfiddle.net/SrHNe/ 它不会改变页面,即使它触发了警报
$('#datepicker').on('change', function(e,p) {
var date = $(this).val();
var location = "index.php?date=" + date;
alert(location);
window.location.href(location);
});
我也尝试过使用 window.location.assign(location),但在这里它只能在 daypicker 按钮的今天按钮“gå til i dag”上工作。? 这个怎么可能?我不能使用 mobile.changePage( to [, options ] ) 因为我需要在没有 ajax 的情况下进行更改。