摘要:
$(function(){ var isShow=true; $('#btn').click(function(){ // 1. 通过控制类样式属性对盒子显示隐藏 if (isShow){ $('.box').css('display','none'); isShow=false; $(this). 阅读全文
摘要:
prop() removeProp() $(function(){ //js对input单选按钮checked的默认设置 //console.log($('input[type=radio]').attr('checked')); //check var oInput=document.getEle 阅读全文
摘要:
1. html属性操作: 是对文档中的属性进行操作 2. dom属性操作 3. 类样式操作 4. 值操作 1. 标签的属性操作 <body> <script type="text/javascript" src="jquery-3.3.1.js"></script> <script type="te 阅读全文
摘要:
类型: 都可以带回调函数 1. 显示动画 .show() //两个参数,(动画的时间,fn) eg: $('.box').show(2000,function({ $(this).text('alex'); })) 2. 隐藏动画 hidden() 3. 开关式显示动画 toggle() 4. 滑入 阅读全文
摘要:
知识点: silbing index addClass removeClass parent find eq 阅读全文