摘要: <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>标题页</title> <script language="javascript"> function getLastDay(year,month) { var new_year = year; //取当前的年份 var new_month = month++;//取下一个月的第一天,方便计算(最后一天不固定) if(month>12) //如果当前大于12月,则年份转到下 阅读全文
posted @ 2013-05-30 13:03 lblu 阅读(325) 评论(0) 推荐(0)
摘要: <!--[if lte IE 6]><![endif]-->IE6及其以下版本可见<!--[if lte IE 7]><![endif]-->IE7及其以下版本可见<!--[if IE 6]><![endif]-->只有IE6版本可见<![if !IE]><![endif]>除了IE以外的版本<!--[if lt IE 8]><![endif]-->IE8及其以下的版本可见<!--[if gte IE 7]><![endif]-->IE7及其以下的版本 阅读全文
posted @ 2012-08-13 13:34 lblu 阅读(130) 评论(0) 推荐(0)
摘要: 数据类型javascript中包含6种数据类型:undefined、null、string、number、boolean和object。其中,前5 种是原始数据类型,object是对象类型。object类型中包括Object、Function、String、Number、Boolean、Array、Regexp、Date、 Globel、Math、Error,以及宿主环境提供的object类型。通常在javascript中进行类型判断主要通过3种方式:typeof、instanceof、constructor。typeoftypeof用以获取一个变量的类型,typeof一般只能返回如下几个结果 阅读全文
posted @ 2012-07-10 18:13 lblu 阅读(235) 评论(0) 推荐(0)