JQ 使用函数

$(this).removeClass(“active”);
$(this).addClass(“active”);
$(this).attr(“data-id”);
$(this).hide();
$(this).show();

onchange=”aa()”

$(this).hasClass(‘on’)

$(this).css(‘background-color’, ‘#9a9a9a’);

$(this).html(”);

$.trim($(this).val())

window.location.href =”

readonly=”readonly”

function share(){
var u = navigator.userAgent;
isAndroid = u.indexOf(‘Android’) > -1 || u.indexOf(‘Adr’) > -1, //android终端
isiOS = !!u.match(/(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(isAndroid){
var url = “https://”;
var title = “标题”;
var describe = “描述”;
var image = “https://”;
var obj={url:url,title:title,describe:describe,image:image}
h5CallNative.nativeShare(JSON.stringify(obj))
}else{
console.log(‘苹果’);
}
}

var phoneReg = /^1[3,5,8,7]\d{9}$/;
if($.trim(contactstel) == ”){
mui.alert(“联系电话不能为空”);
return false;
} else if(!phoneReg.test($.trim(contactstel))){
mui.alert(“手机号格式不正确”);
return false;
}

var result = (new Function(“return ” + result))();

2 thoughts on “JQ 使用函数

  1. I was recommended this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You are wonderful! Thanks!

  2. I have been surfing online more than 3 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my opinion, if all web owners and bloggers made good content as you did, the web will be much more useful than ever before.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Back To Top

鄂ICP备17008157号-1