上一页 1 2 3 4 5 6 ··· 10 下一页
  2016年9月14日
摘要: 快捷操作 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)
  2016年9月12日
摘要: window对象方法 alert():弹出一个警告对话框。 prompt():弹出一个输入对话框。 confirm():弹出一个确认对话框。如果单击“确定按钮”返回true,如果单击“取消”返回false。 close():关闭窗口 print():打印窗口 open()方法 功能:打开一个新的浏览 阅读全文
posted @ 2016-09-12 16:33 冬_雪_飘 阅读(1046) 评论(0) 推荐(0)
摘要: BOM和DOM简介 BOM,Browser Object Model ,浏览器对象模型。 BOM主要提供了访问和操作浏览器各组件的方式。 浏览器组件: window(浏览器窗口) location(地址栏) history(浏览历史) screen(显示器屏幕) navigator(浏览器软件) d 阅读全文
posted @ 2016-09-12 16:24 冬_雪_飘 阅读(247) 评论(0) 推荐(0)
摘要: Date对象 Date对象和String对象不太一样,定义了一字符串,其实就是一个String对象,就可以直接调用属性和方法。 Date对象的使用,必须使用new关键字来创建,否则,无法调用Date对象的属性和方法。 创建Date对象的方法 (1)创建当前(现在)日期对象的实例,不带任何参数 var 阅读全文
posted @ 2016-09-12 07:43 冬_雪_飘 阅读(414) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页