常用jQuery

//双击事件
"tr_click(event);"
function tr_click(e) {
    if(e.target.cellIndex!=0){
        alert("不是第一个td");
    }
}

//jQ跳转,
window.location.href = webContext + "/user/addSales.do";
//新打开一个页面
window.open(webContext + "/ladingBillSell/ladingBillSell.do?pk_items=" + pk_item_list);

//延迟两秒加载
setTimeout('window.location.href = webContext + "/sdraw/drawingBinding.do"',2000);

//控制自动填充
autocomplete="no"

//JSP重新打开一个页面
target="_blank"

//等页面刷新之后,再出初始化按钮
$(document).delegate("#saveWithDraw","click",function(){}

//弹出框显示
$("#pop_error").modal("show");

//弹出框消失
$("#pop_error").modal("hide");

//获取checkbox选中的参数
$("#long_certificate_type").is(':checked');

//当每次用jQuery添加新的行数,需要重新定义点击实现,所以需要先消除点击事件,再声明,就不会重复提交。
$("[name='add_tr']").unbind('click').bind("click", function () {}


$this.parents(".formControls").find(".Validform_checktip").removeClass("Validform_right").removeClass("Validform_wrong").text("请输入开户银行名称!");

jQuery.isEmptyObject(data) //对象为空,返回true
jQuery.isEmptyObject({}) //对象为空,返回true
jQuery.isEmptyObject({test:"test"}) //返回false

$("button").click(function(){
  $("input").trigger("select");
});
//trigger() 方法触发被选元素的指定事件类型。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值