MIMS.Web/Content/Site.js

(开头部分) 1KB

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

function addTab(title, url) {
	if ($('#tabs').tabs('exists', title)) {
		$('#tabs').tabs('select', title);
	} else {
		var content = '<iframe scrolling="no" frameborder="0"  src="' + url + '" style="width:100%;height:99%;margin:0;padding:0"></iframe>';
		$('#tabs').tabs('add', {
			title: title,
			content: content,
			closable: true
		});
	}
}



/* 请求Ajax 带返回值
--------------------------------------------------*/
function getAjax(url, parm, callBack) {
	$.ajax({
		type: 'post',
		dataType: "text",
		url: url,
		data: parm,
		cache: false,
		async: false,
		success: function (msg) {
			callBack(msg);
		}
	});
}

//自动获取页面控件值
function GetWebControls(element) {
	var reVal = "";
	$(element).find('input,select,textarea').each(function (r) {
		var id = $(this).attr('id');
		var value = $(this).val();
		var type = $(this).attr('type');
		switch (type) {
			case "checkbox":
				if ($(this).is(':checked')) {
					reVal += '"' + id + '"' + ':' + '"1",';
				} else {
					reVal += '"' + id + '"' + ':' + '"0",';
				}
				break;
			default:
				reVal += '"' + id + '"' + ':' + '"' + $.trim(value) + '",';
				break;
		}
	});
	/* 
	将回车字符替换成\\n
	*/
	reVal = reVal.replace(/\n/g, " ");
	reVal = reVal.substr(0, reVal.length - 1);
	return jQuery.parseJSON('{' + reVal + '}');
}
//自动给控件赋值
function SetWebControls(data) {
后面还有 18 行代码,购买后查看完整代码

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

AI 解读

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

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