标签:
屏蔽鼠标右键 $(document).bind("contextmenu",function(){return false;});
屏蔽鼠标左键选择 $(document).bind("selectstart",function(){return false;});
获取URL里面的参数,用法alert(GetUrlParms("parm"))
function GetUrlParms(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
var r = window.location.search.substr(1).match(reg); //匹配目标参数
if (r != null) return unescape(r[2]); return null; //返回参数值
}
checkbox全选
function SelectAll(boxID) {
$("#" + boxID + " :checkbox").attr("checked", true);
}
checkbox全不选
function SelectNone(boxID) {
$("#" + boxID + " :checkbox").attr("checked", false);
}
checkbox全选或全不选
function Select(boxID, isSelect) {
if (isSelect != null && isSelect == "True") {
$("#" + boxID + " :checkbox").attr("checked", true);
}
else {
$("#" + boxID + " :checkbox").attr("checked", false);
}
}
标签:
原文地址:http://www.cnblogs.com/jiaoliu/p/4193695.html