Comments (4)
from jedate.
+1
from jedate.
我在sethmsStrHtml方法中,注释掉 if (hmsCls.html() == "") 这条判断语句就没问题了
from jedate.
目前方法可以这样搞
<div class="jeitem">
<label class="jelabel jw43">时间:</label>
<div class="jeinpbox" @click="openDate('#stime','YYYY-MM-DD hh:mm:ss',1)">
<input type="text" readonly class="jeinput" id="stime" placeholder="开始时间">
<div class="icons-jedate jebtns"></div>
</div>
</div>
openDate(dom, format, status) {
var self = this;
//获取当前时间戳
var minDates = moment((moment().unix() - 3 * 30 * 24 * 60 * 60) * 1000 + (24 * 60 * 60*1000)).format("YYYY-MM-DD 00:00:00");
var maxDates = moment().format("YYYY-MM-DD 23:59:59")
console.log(minDates, maxDates, 'aabbcc')
jeDate(dom, {
trigger: false,
format: format,
theme: {
bgcolor: "#5985f7",
color: "#ffffff",
pnColor: "#5985f7"
},
donefun: function(obj) {
if (status == 1) {
self.startTime = makeTimes(obj.val);
} else if (status == 2) {
self.endTime = makeTimes(obj.val);
}
},
minDate: minDates,
maxDate: maxDates,
});
}
from jedate.
Related Issues (20)
- jeDate控件位置如何调整,文档没有给参数?
- 日
- 如何设置初始化的月份
- 你好,请问一下,我在给定一个日期 如何禁用这个日期之前的 所有年月日 让他无法点击?
- 你好,我在使用这个jeDate遇到问题,求助一下 HOT 1
- vue中 npm 安装后怎么引入和使用呢
- npm库的版本一直无更新
- 点击确定日期变动当天 HOT 1
- 时间格式为YYYY-MM的时候, 最小最大日期功能失效
- 通过donefun方法判断截止日期大于开始日期时如何阻止日期显示
- position的数据格式是什么样子的
- unsafe_eval
- 怎么获取选中之后的时分秒?谢谢大佬 HOT 1
- 添加时间戳功能
- 点击月份后选取后,日期undefined HOT 1
- jquery版本的onclick回调多次
- 切换时间(最小单位为小时)时问题
- 日期联动 HOT 3
- 元宵节无显示 HOT 1
- 6.5.0版日期设置YYYY时onClose无效
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedate.