摘要:
快捷操作 1. class属性值操作 $().attr(‘class’,值); $().attr(‘class’); $().removeAttr(‘class’); //删除class的所有属性 $().addClass(值); //给class属性追加信息值 $().removeClass(值) 阅读全文
posted @ 2016-09-14 09:22
冬_雪_飘
阅读(763)
评论(0)
推荐(0)
摘要:
属性操作 <input type=”text” class=”apple” id=”username” name=”username” value=”tom” address=”beijing” /> itnode.属性名称 itnode.属性名称= 值; itnode.getAttribute(属 阅读全文
posted @ 2016-09-14 09:15
冬_雪_飘
阅读(168)
评论(0)
推荐(0)
摘要:
复选框、单选按钮、下拉列表 /***********************************************/ <script type="text/javascript"> function f1(){ //获得复选框选中情况 //$(:checked) 过滤出被选中的复选框、单选 阅读全文
posted @ 2016-09-14 09:04
冬_雪_飘
阅读(477)
评论(0)
推荐(0)
摘要:
1 派生选择器:在s1内部获得全部的s2节点(不考虑层次) $(“div span”)// 派生选择器 <div> <span></span>//找到 <p> <span></span>//找到 </p> </div> <span></span>//找不到 2 $(s1 > s2) [父子] 直接子 阅读全文
posted @ 2016-09-14 08:34
冬_雪_飘
阅读(10167)
评论(0)
推荐(0)
摘要:
1 基本选择器 $(‘#id属性值’) >document.getElementById() $(‘tag标签名称’) >document.getElementsByTagName(); $(‘.class属性值’) class属性值选择器 $(‘*’) 通配符选择器 $(‘s1,s2,s3’)联合 阅读全文
posted @ 2016-09-14 07:41
冬_雪_飘
阅读(215)
评论(0)
推荐(0)
摘要:
index.html <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>基础核心</title><script type="text/javascript" src="jquery-1. 阅读全文
posted @ 2016-09-14 07:28
冬_雪_飘
阅读(133)
评论(0)
推荐(0)
摘要:
index.html <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>基础核心</title><script type="text/javascript" src="tool.js"> 阅读全文
posted @ 2016-09-14 07:17
冬_雪_飘
阅读(1138)
评论(0)
推荐(0)
浙公网安备 33010602011771号