我正在尝试使用vuejs实现bootstrap日期选择器的动态开始日期。下面是我目前代码中的示例。使用-30d或格式为01-01-2016但不是2016-01-01的日期有效。
<input type="text" name="cancelDate" id="cancelDate" autocomplete="off" class="form-control form-control-small"
v-model="sale.cancelDate"
v-bind:class="{ 'has-error': !validation.cancelDate }"
v-datepicker start-date="{{sale.saleDate}}" />
<p>{{sale.saleDate}}</p>
可以访问p标签中的{{sale.saleDate}},并显示“1/27/2016”之类的日期。将“开始日期”更改为“数据开始日期”不起作用。在datepicker指令中,我有......
var self = this;
$(self.el).datepicker({
startDate: self.params.startDate,
endDate: self.params.endDate,
todayBtn: "linked",
autoclose: true
});
如何动态显示开始日期?
答案 0 :(得分:1)
我在这里发布了一个例子:
Error using @(y)y...
Error in integral3>@(y)ZMAXXY(x(1)*ones(size(y)),y) (line 141)@(y)ZMAXXY(x(1)*ones(size(y)),y), ...
Error in integral2Calc>integral2t/tensor (line 190)
top = YMAX(x);`
Error in integral2Calc>integral2t (line 55)
[Qsub,esub] = tensor(thetaL,thetaR,phiB,phiT);
Error in integral2Calc (line 9)
[q,errbnd] = integral2t(fun,xmin,xmax,ymin,ymax,optionstruct);
Error in integral3/innerintegral (line 137)
Q1 = integral2Calc( ...
Error in integralCalc/iterateScalarValued (line 314)
fx = FUN(t);
Error in integralCalc/vadapt (line 132)
[q,errbnd] = iterateScalarValued(u,tinterval,pathlen);
Error in integralCalc (line 75)
[q,errbnd] = vadapt(@AtoBInvTransform,interval);
Error in integral3 (line 121)
Q = integralCalc(@innerintegral,xmin,xmax,integralOptions);
https://jsfiddle.net/nosferatu79/jfk97gp9/4/
希望这有帮助...