You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
$(function(){ //头部菜单
$('.classreturn .nav_menu a:last').click(function(e){ $('.tpnavf').toggle(); e.stopPropagation(); }); //左侧导航
$('.classlist ul li').click(function(){ $(this).addClass('red').siblings().removeClass('red'); }); });
//删除确认框
function delconfirm(url,des) { if(!des){des='确定要删除吗?';} //询问框
layer.open({ content: des ,btn: ['确定', '取消'] ,yes: function(index){ location.href= url; layer.close(index); } }); }
//手机号验证
function validatemobile(mobile) { if(mobile.length == 0 || mobile.length != 11) { return false; } var reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; if(!reg.test(mobile)) { return false; } return true; }
|