Created
August 6, 2021 02:37
-
-
Save z1076/f8cb716061a9b5cc3f93a01733e2aab3 to your computer and use it in GitHub Desktop.
[Jquery] #js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vim: syntax=js | |
$(".class_name").html(); //样式选择器 | |
$("#id_name").html(); //ID选择器 | |
$("#name > .img").val(); //子选择器 | |
$(function () { | |
$('#box1').foucs(); //获取焦点 | |
$('#box2').blur(); //失去焦点 | |
}); | |
$(document).ready(function () { | |
$(".ad_r").remove(); | |
$(".box_0").remove(); | |
$(".box_1").remove(); | |
$("#share").remove(); | |
$(".home > a").attr('href','www.baidu.com'); | |
}); | |
if($('#checkbox-id').is(':checked')) {} | |
if(typeof($("#aid").attr("rel"))=="undefined") //判断属性是否存在 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment