server/aspnetapp/wwwroot/lib/layim-v3.9.1/src/lay/modules/mobile/layim-mobile.js
(开头部分) 39KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
@Name:layim mobile 2.2.0
@Author:贤心
@Site:http://layim.layui.com
@License:LGPL
*/
layui.define(['laytpl', 'upload', 'layer-mobile', 'zepto'], function(exports){
var v = '2.2.0';
var $ = layui.zepto;
var laytpl = layui.laytpl;
var layer = layui['layer-mobile'];
var device = layui.device();
var SHOW = 'layui-show', THIS = 'layim-this', MAX_ITEM = 20;
//回调
var call = {};
//对外API
var LAYIM = function(){
this.v = v;
touch($('body'), '*[layim-event]', function(e){
var othis = $(this), methid = othis.attr('layim-event');
events[methid] ? events[methid].call(this, othis, e) : '';
});
};
//避免tochmove触发touchend
var touch = function(obj, child, fn){
var move, type = typeof child === 'function', end = function(e){
var othis = $(this);
if(othis.data('lock')){
return;
}
move || fn.call(this, e);
move = false;
othis.data('lock', 'true');
setTimeout(function(){
othis.removeAttr('data-lock');
}, othis.data('locktime') || 0);
};
if(type){
fn = child;
}
obj = typeof obj === 'string' ? $(obj) : obj;
if(!isTouch){
if(type){
obj.on('click', end);
} else {
obj.on('click', child, end);
}
return;
}
后面还有 1111 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。