Car/Admin/Js/haidao.offcial.general.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$(function(){
	//ajax设置
//	$(document).ajaxStart(function(){
//	  layer.load(0, {shade: false});
//	});
//	$(document).ajaxStop(function(){
//	  layer.close(layer.load());
//	});
	
	//下拉
	$(".dropdown").live('click',function(e){
		if($(this).hasClass("open")){
			$(this).removeClass("open");
		}else{
			$(".dropdown").removeClass("open");
			$(this).addClass("open");
		}
		//e.stopPropagation();
	});
	//formhash
	try{
	$('form').each(function(i, n) {
        $(this).append('<input type="hidden" name="formhash" value="'+ formhash +'"/>');
    })

    $("a").each(function() {
    	var href = $(this).attr('href');
    	if(href && href.indexOf('javascript:') == -1 && href.indexOf('formhash') == -1 && $(this).attr('rel') != 'nofollow') {
			if(href.indexOf('?') != -1) {
				href += '&formhash='+formhash;
			} else {
				href += '?formhash='+formhash;
			}
			$(this).attr('href', href);
    	}
    })
	}catch(e){}
	//按钮弹窗
	$(".btn_ajax_open").live('click',function(){
		var panel = ''+$(this).attr('data-panel')+'';
		var callback = ''+$(this).attr('data-callback')+'';
		var title = $(this).attr('data-title');
		var btn = $(this).attr('data-btn');
		title = (typeof(title)=='undefined')?'信息':title;
		btn = (typeof(btn)=='undefined')?['确认','取消']:btn.split(",");
		//捕获页
		layer.open({
			type:1,
			maxWidth:600,
			title:title,
			content: $('.'+panel+''), //捕获的元素
			btn:btn,
			yes: function(index, layero){
				eval(callback);
			},
			cancel: function(index){
				layer.close(index);
			}
		});
		return false;
后面还有 60 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。