【文件属性】:
文件名称:移动端 日期,树...等控件的js插件
文件大小:159KB
文件格式:JS
更新时间:2018-07-06 03:49:41
移动端 mobiscroll 日期 日历
移动端 日期,树...等控件的js插件
if (!window.jQuery) {
var jQuery = Zepto;
(function (a) {
[
'width',
'height'
].forEach(function (k) {
a.fn[k] = function (n) {
var t,
c = document.body,
h = document.documentElement,
b = k.replace(/./, function (a) {
return a[0].toUpperCase()
});
return void 0 === n ? this[0] == window ? h['client' + b] : this[0] == document ? Math.max(c['scroll' + b], c['offset' + b], h['client' + b], h['scroll' + b], h['offset' + b]) : (t = this.offset()) && t[k] : this.each(function () {
a(this).css(k, n)
})
}
});
[
'width',
'height'
网友评论
- 试试看怎么样。。