`
tsailer
  • 浏览: 51433 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
文章列表
.c{height: height: 1%;} 导致 var h2 = $(".c").outerHeight(true); alert(h2);//弹出2 然后我改为 .c{height:auto;} var h2 = $(".c").outerHeight(true); alert(h2);//弹出正常 因为我的原页面是aaa.html,参考页是aaa_test.html 页面中都有<ul class="c"> 只是aaa.html和aaa_test.html引用的样式文件不同,我刚开始一直认为它们相同... 以 ...

JS的replace方法

    博客分类:
  • JS
from http://www.cnblogs.com/mxw09/archive/2010/08/12/1797905.html replace() 方法的参数 replacement 可以是函数而不是字符串。在这种情况下,每个匹配都调用该函数,它返回的字符串将作为替换文本使用。该函数的第一个参数是匹配模式的字符串。接下来的参数 是与模式中的子表达式匹配的字符串,可以有 0 个或多个这样的参数。接下来的参数是一个整数,声明了匹配在 stringObject 中出现的位置。最后一个参数是 stringObject 本身。 下文展示了几种javascript正则表示式的repalce方式,有 ...
来源于 http://hi.baidu.com/godghdai/blog/item/6b42c45c7a5ef24afbf2c0bc.html 要写出在各大主流浏览器上都兼容的JS代码,就要关注他们的区别,下是IE和FF综合考虑的通用DOM! 1.document.formName.item("itemName") 问题 说明:IE下,可以使用document. ...
"true" and true is different <input type="text" id="start" /> function $(id){ return document.getElementById(id); } var start=$('start').value == "true"?true:false;
字符串转日期型+Js当前日期时间+日期验证+判断闰年+日期的天数差+日期格式化+日期所在年的第几周 日期时间脚本库方法列表 Date.prototype.isLeapYear 判断闰年 Date.prototype.Format 日期格式化 Date.prototype.DateAdd 日期计算 Date.prototype.DateDiff 比较日期差 Date.prototype.toString 日期转字符串 Date.prototype.toArray 日期分割为数组 Date.prototype.DatePart 取日期的部分信息 Date.prototype.MaxDayOfDat ...
很多人都认为JS的效率太慢了,都不愿意用js来实现相对困难一点的程序逻辑。在这里我要说的是其实js的效率并不慢,慢的是DOM,如果操作好DOM,你的js效率将提高接近千倍(这并不是什么夸张的数字)。 1. 批量增加Dom 尽量使 ...

form page jump

    博客分类:
  • JS
 
页面跳转 <input type="hidden" > 成功失败url要使用完整的url路径

jquery widget sample

    博客分类:
  • JS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta http-equiv="C ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta http-equiv="C ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta http-equiv="Con ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> </h ...
jquery 学习之一(js中window.onload与jquery中$(document.ready())的区别) 耳听为虚,眼见为实。通过下面的实例可查看两者的异同(注意:aa.jpg最好是一张大容量图片) <html> <head> <script type='text/javascript' src='jquery-1.3.2.min.js'>< ...
框架如下 <frameset rows="126,*," cols="," framespacing="0" frameborder="no" border="0"> <frame src="header.html" name="header" frameborder="0" scrolling="no" noresize="noresize"> <fram ...
我的页面框架如下 <frameset rows="," cols="190,*" framespacing="0" frameborder="no" border="0" class="k"> <frame src="left_01.html" name="left" frameborder="no" noresize="noresize" scrolling="n ...
js中frame的调用 关键词: js,frame,iframe                                          框架编程概述 一个HTML页面可以有一个或多个子框架,这些子框架以<iframe>来标记,用来显示一个独立的HTML页面。这里所讲 ...
Global site tag (gtag.js) - Google Analytics