src/main/webapp/plugin/laydate/laydate.js
(开头部分) 33KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*! laydate-v5.0.2 日期与时间组件 MIT License http://www.layui.com/laydate/ By 贤心 */ ;
! function() {
"use strict";
var e = window.layui && layui.define,
t = {
getPath: function() {
var e = document.scripts,
t = e[e.length - 1],
n = t.src;
if(!t.getAttribute("merge")) return n.substring(0, n.lastIndexOf("/") + 1)
}(),
getStyle: function(e, t) {
var n = e.currentStyle ? e.currentStyle : window.getComputedStyle(e, null);
return n[n.getPropertyValue ? "getPropertyValue" : "getAttribute"](t)
},
link: function(e, a, i) {
if(n.path) {
var r = document.getElementsByTagName("head")[0],
o = document.createElement("link");
"string" == typeof a && (i = a);
var s = (i || e).replace(/\.|\//g, ""),
l = "layuicss-" + s,
d = 0;
o.rel = "stylesheet", o.href = n.path + e, o.id = l, document.getElementById(l) || r.appendChild(o), "function" == typeof a && ! function c() {
return ++d > 80 ? window.console && console.error("laydate.css: Invalid") : void(1989 === parseInt(t.getStyle(document.getElementById(l), "width")) ? a() : setTimeout(c, 100))
}()
}
}
},
n = {
v: "5.0.2",
config: {},
index: window.laydate && window.laydate.v ? 1e5 : 0,
path: t.getPath,
set: function(e) {
var n = this;
return n.config = t.extend({}, n.config, e), n
},
ready: function(a) {
var i = "laydate",
r = "",
o = (e ? "modules/laydate/" : "../css/modules/") + "laydate.css?v=" + n.v + r;
return e ? layui.addcss(o, a, i) : t.link(o, a, i), this
}
},
a = function() {
var e = this;
return {
hint: function(t) {
e.hint.call(e, t)
},
config: e.config
}
},
i = "laydate",
r = ".layui-laydate",
o = "layui-this",
s = "laydate-disabled",
l = "开始日期超出了结束日期<br>建议重新选择",
d = [100, 2e5],
后面还有 786 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
