我想创建一个按天排序的菜单。一切正常,除了寻呼机不会输出工作日。我的代码如下:
var days = new Array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday" );
$('#main')
.before('<div id="nav">')
.cycle({
fx: 'toss',
timeout: 0,
pager: '#nav',
options: {
pagerAnchorBuilder: function(i,el) {
return '<a href="#">'+document.write(days[i+1])+'</a>';
}
}
});
但是,它仍然默认为数字。有人可以指出我正确的方向吗?