datebox中如何用属性控制其日历的firstDay?

提问 未结 1 6883
悬赏:20飞吻
<input type="text" id="dStart" name="dStart" data-toggle="topjui-datebox" data-options="editable:true,firstDay:1,value:''">
直接在属性中写上firstDay无效。

当然如果通过方法可以实现:
var c = $('#dStart').datebox('calendar');
// set the first day of week to monday
c.calendar({
firstDay: 1
});

但是我不想所有的datebox都要通过方法来实现,太麻烦。如何在属性设置里就设置firstDay? 或者说datebox的属性设置里如何设置其用到的calendar的属性?
回帖
回帖须知